diff options
author | vuhopkep <boy9x0@gmail.com> | 2019-10-24 06:38:44 +0700 |
---|---|---|
committer | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2019-10-23 16:38:44 -0700 |
commit | 23f89ff7cf4bce42d46e99183a977c5c74384c57 (patch) | |
tree | 824a6259ef2a3958afd84b0d5f1186b12445751b /keyboards/handwired/hnah40rgb/hnah40rgb.c | |
parent | e264f0151da0025dbb53dfc5a70bce13105a04d8 (diff) | |
download | firmware-23f89ff7cf4bce42d46e99183a977c5c74384c57.tar.gz firmware-23f89ff7cf4bce42d46e99183a977c5c74384c57.tar.bz2 firmware-23f89ff7cf4bce42d46e99183a977c5c74384c57.zip |
[Keyboard] add new keyboard hnah40rgb (#7083)
* add new keyboard hnah40rgb
* update
* Update hnah40rgb.c
* update
Diffstat (limited to 'keyboards/handwired/hnah40rgb/hnah40rgb.c')
-rw-r--r-- | keyboards/handwired/hnah40rgb/hnah40rgb.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/keyboards/handwired/hnah40rgb/hnah40rgb.c b/keyboards/handwired/hnah40rgb/hnah40rgb.c new file mode 100644 index 000000000..2bf1373d9 --- /dev/null +++ b/keyboards/handwired/hnah40rgb/hnah40rgb.c @@ -0,0 +1,47 @@ +#include "hnah40rgb.h" +#ifdef RGB_MATRIX_ENABLE +#if defined (ansi) +led_config_t g_led_config = { { + //Key Matrix to LED Index + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, + {22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12 }, + {23, 24, 25, 26, 27, 28, 29, 30, 31, NO_LED, 34}, + {43, 42, 41, NO_LED, NO_LED, NO_LED, 38, NO_LED, 36, 35, 11} +}, { + //LED Index to Physical Positon + { 0, 0}, { 20, 0}, { 40, 0 }, { 61, 0 }, { 81, 0}, { 101, 0}, { 122, 0}, { 142, 0}, { 162, 0}, { 183, 0}, { 224, 0}, { 224, 0}, + {224, 21}, {183, 21}, {162,21 }, {142, 21}, {122,21}, { 101,21}, { 81 ,21}, { 61 ,21}, { 40 ,21}, { 20 ,21}, { 0 ,21}, + { 0, 42}, { 20, 42}, { 40,42 }, { 61, 42}, { 81,42}, { 101,42}, { 122,42}, { 142,42}, { 162,42}, { 183,42}, { 224,42}, + {224, 64}, {224, 64}, {181,64 }, {162, 64}, {122,64}, {101,64}, { 61,64}, { 40,64}, { 20,64}, { 0,64}, + { 0,64}, { 0,0}, { 224,10}, { 224,18}, { 224,30}, { 224,47}, +}, { + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, +} }; + +#else +led_config_t g_led_config = { { + //Key Matrix to LED Index + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, + {22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12 }, + {23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34}, + {43, 42, 41, NO_LED, 40, 39, 38, 37, 36, 35, 11} +}, { + //LED Index to Physical Positon + { 0, 0}, { 20, 0}, { 40, 0 }, { 61, 0 }, { 81, 0}, { 101, 0}, { 122, 0}, { 142, 0}, { 162, 0}, { 183, 0}, { 224, 0}, { 224, 0}, + {224, 21}, {183, 21}, {162,21 }, {142, 21}, {122,21}, { 101,21}, { 81 ,21}, { 61 ,21}, { 40 ,21}, { 20 ,21}, { 0 ,21}, + { 0, 42}, { 20, 42}, { 40,42 }, { 61, 42}, { 81,42}, { 101,42}, { 122,42}, { 142,42}, { 162,42}, { 183,42}, { 224,42}, + {224, 64}, {224, 64}, {181,64 }, {162, 64}, {122,64}, {101,64}, { 61,64}, { 40,64}, { 20,64}, { 0,64}, + { 0,64}, { 0,0}, { 224,10}, { 224,18}, { 224,30}, { 224,47}, +}, { + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, +} }; +#endif +#endif
\ No newline at end of file |