Update sz_f1.ino
This commit is contained in:
parent
0783f995ff
commit
8b76645de1
|
@ -10,6 +10,7 @@ char keymap[numRows][numCols] = {
|
||||||
{'7', '8', '9', 'C'},
|
{'7', '8', '9', 'C'},
|
||||||
{'*', '0', '#', 'D'}
|
{'*', '0', '#', 'D'}
|
||||||
};
|
};
|
||||||
|
// keypad pins
|
||||||
byte rowPins[numRows] = {13, 12, 11, 10};
|
byte rowPins[numRows] = {13, 12, 11, 10};
|
||||||
byte colPins[numCols] = {9, 8, 7, 6};
|
byte colPins[numCols] = {9, 8, 7, 6};
|
||||||
Keypad keypad = Keypad(makeKeymap(keymap), rowPins, colPins, numRows, numCols);
|
Keypad keypad = Keypad(makeKeymap(keymap), rowPins, colPins, numRows, numCols);
|
||||||
|
@ -17,12 +18,12 @@ Keypad keypad = Keypad(makeKeymap(keymap), rowPins, colPins, numRows, numCols);
|
||||||
#include <Servo.h>
|
#include <Servo.h>
|
||||||
Servo servo;
|
Servo servo;
|
||||||
|
|
||||||
//leds
|
// led pins
|
||||||
const int greenLed = 1;
|
const int greenLed = 1;
|
||||||
const int ledArray[6] = {2, 3, 4, 5, 6, 7};
|
const int ledArray[6] = {2, 3, 4, 5, 6, 7};
|
||||||
const int redLed = 8;
|
const int redLed = 8;
|
||||||
|
|
||||||
// constants
|
// pins
|
||||||
const int registerInput = 1;
|
const int registerInput = 1;
|
||||||
const int outputRegister = 2;
|
const int outputRegister = 2;
|
||||||
const int shiftRegister = 3;
|
const int shiftRegister = 3;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user