29 lines
525 B
C++
29 lines
525 B
C++
#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() {
|
|
|
|
} |