summaryrefslogtreecommitdiff
path: root/keyboards/nyquist/rev2/rev2.c
diff options
context:
space:
mode:
authorDanny2018-04-20 20:02:09 -0400
committerDrashna Jaelre2018-04-20 17:02:09 -0700
commitc604cd6fd716a84432ecc66edb69d74b5d23bbad (patch)
treefcce87af81eae55cc23fbc8346dcdab8ad482f5d /keyboards/nyquist/rev2/rev2.c
parent2a63e212794627ee649e4649355ecce8d1a790b8 (diff)
Add Nyquist Rev. 2 (#2414)
Diffstat (limited to 'keyboards/nyquist/rev2/rev2.c')
-rw-r--r--keyboards/nyquist/rev2/rev2.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/keyboards/nyquist/rev2/rev2.c b/keyboards/nyquist/rev2/rev2.c
new file mode 100644
index 000000000..9922b8995
--- /dev/null
+++ b/keyboards/nyquist/rev2/rev2.c
@@ -0,0 +1,21 @@
+#include "rev2.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();
+};