diff options
author | Salicylic-acid3 <46864619+Salicylic-acid3@users.noreply.github.com> | 2019-10-21 04:03:46 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-10-20 12:03:46 -0700 |
commit | 233a1e9bcd3328b28b6fc303a70da84e35342d0b (patch) | |
tree | 362df141153167269974b483a349578589152748 /keyboards/naked48/rev1/rev1.c | |
parent | a41066beedebefc12245c3eee4bb90116c11f7cd (diff) |
[Keyboard] Keyboard Naked48 Update (#7085)
* Keyboard Naked48 Update
Support for SPLIT_KEYBOARD
Readme updates
Keymap updates
Support for RGB matrix (salicylic keymap)
* Keymap Update
Change KC_NO to KC_TRANSPARENT.
Update the old part.
Diffstat (limited to 'keyboards/naked48/rev1/rev1.c')
-rw-r--r-- | keyboards/naked48/rev1/rev1.c | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/keyboards/naked48/rev1/rev1.c b/keyboards/naked48/rev1/rev1.c index b5f6532b2e..e127232d80 100644 --- a/keyboards/naked48/rev1/rev1.c +++ b/keyboards/naked48/rev1/rev1.c @@ -1,15 +1,36 @@ #include "naked48.h" - -#ifdef SSD1306OLED +/*#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); + // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here + //led_set_user(usb_led); } +#endif*/ + +#ifdef RGB_MATRIX_ENABLE + led_config_t g_led_config = { { + // Key Matrix to LED Index + { 0,47,42,41,36,35,30,29,24,23,18,17 }, + { 1,46,43,40,37,34,31,28,25,22,19,16 }, + { 2,45,44,39,38,33,32,27,26,21,20,15 }, + { 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14 } + }, { + // LED Index to Physical Position + { 0, 0 }, { 0, 21 }, { 0, 43 }, { 17, 64 }, { 34, 64 },{ 52, 64 }, { 69, 64 }, { 86, 64 }, { 103, 64 }, { 121, 64 }, + { 138, 64 }, { 155, 64 }, { 172, 64 }, { 190, 64 }, { 207, 64 },{ 224, 43 }, { 224, 21 }, { 224, 0 }, { 207, 0 }, { 207, 21 }, + { 207, 43 }, { 190, 43 }, { 190, 21 }, { 190, 0 }, { 172, 0 },{ 172, 21 }, { 172, 43 }, { 155, 43 }, { 155, 21 }, { 155, 0 }, + { 138, 0 }, { 138, 21 }, { 138, 43 }, { 86, 43 }, { 86, 21 },{ 86, 0 }, { 69, 0 }, { 69, 21 }, { 69, 43 }, { 52, 43 }, + { 52, 21 }, { 52, 0 }, { 34, 0 }, { 34, 21 }, { 34, 43 },{ 17, 43 }, { 17, 21 }, { 17, 0 } + }, { + // LED Index to Flag + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4 +} }; #endif void matrix_init_kb(void) { - matrix_init_user(); -}; - +};
\ No newline at end of file |