Bulding main firmware
This commit is contained in:
parent
06d77dc2fe
commit
25f1225104
29
firmware/main/main.ino
Normal file
29
firmware/main/main.ino
Normal file
@ -0,0 +1,29 @@
|
||||
#include <FastLED.h>
|
||||
#include <Keyboard.h>
|
||||
#include <Keypad.h>
|
||||
|
||||
//Declarations LED
|
||||
#define NUM_LED 4
|
||||
#define LED_PIN 7
|
||||
CRGB led[NUM_LED];
|
||||
//Declarations KEYPAD
|
||||
const byte ROWS = 4;
|
||||
const byte COLS = 4;
|
||||
char keys[ROWS][COLS] = {
|
||||
{'0','1','2','3'},
|
||||
{'4','5','6','7'},
|
||||
{'8','9','a','b'},
|
||||
{'c','d','e','f'}
|
||||
};
|
||||
byte rowPins[ROWS] = {13, 5, 10, 9};
|
||||
byte colPins[COLS] = {8, 6, 12, 4};
|
||||
Keypad kpd = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
|
||||
char ctrlKey = KEY_LEFT_CTRL;
|
||||
|
||||
void setup() {
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user