summaryrefslogtreecommitdiffstats
path: root/keyboards/redox/rev1/rev1.c
diff options
context:
space:
mode:
authorMattia Dal Ben <mattdibi@users.noreply.github.com>2018-04-29 22:01:33 +0200
committerDrashna Jaelre <drashna@live.com>2018-04-29 22:01:33 +0200
commit3b7b1994cd9e3e61fdee84eff78875135642aa6c (patch)
treebb7be07641b6b4bf5b992a53d80990d92dc62e41 /keyboards/redox/rev1/rev1.c
parent19aa2c34e859946edae24108fe7df69c949b124e (diff)
downloadqmk_firmware-3b7b1994cd9e3e61fdee84eff78875135642aa6c.tar.gz
qmk_firmware-3b7b1994cd9e3e61fdee84eff78875135642aa6c.tar.xz
Redox keyboard code (#2843)
* Added Redox keyboard with default keymap (IT layout) * Updated manufacturer url * Applied requested changes
Diffstat (limited to 'keyboards/redox/rev1/rev1.c')
-rw-r--r--keyboards/redox/rev1/rev1.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/keyboards/redox/rev1/rev1.c b/keyboards/redox/rev1/rev1.c
new file mode 100644
index 000000000..2eb7c7c0e
--- /dev/null
+++ b/keyboards/redox/rev1/rev1.c
@@ -0,0 +1,22 @@
+#include "redox.h"
+
+
+#ifdef SSD1306OLED
+void led_set_kb(uint8_t usb_led) {
+ // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+ led_set_user(usb_led);
+}
+#endif
+
+void matrix_init_kb(void) {
+
+ // // green led on
+ // DDRD |= (1<<5);
+ // PORTD &= ~(1<<5);
+
+ // // orange led on
+ // DDRB |= (1<<0);
+ // PORTB &= ~(1<<0);
+
+ matrix_init_user();
+};