From 25f1225104d6e832a87944db33c5cef21ba6dd04 Mon Sep 17 00:00:00 2001 From: Max Hunt Date: Fri, 28 Sep 2018 17:54:30 +0100 Subject: [PATCH] Bulding main firmware --- firmware/main/main.ino | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 firmware/main/main.ino diff --git a/firmware/main/main.ino b/firmware/main/main.ino new file mode 100644 index 0000000..6e2f401 --- /dev/null +++ b/firmware/main/main.ino @@ -0,0 +1,29 @@ +#include +#include +#include + +//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() { + +} \ No newline at end of file