#include "canoe_gen2.h"
void keyboard_pre_init_kb(void) {
setPinOutput(E6);
writePinHigh(E6);
}
bool led_update_kb(led_t led_state) {
if(led_update_user(led_state)) {
writePin(E6, !led_state.caps_lock);
}
return true;
}
#ifdef RGB_MATRIX_ENABLE
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
led_config_t g_led_config = { {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16 },
{ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 13, 31 },
{ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 30, 45, 47 },
{ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63 },
{ 64, 65, 66, NO_LED, NO_LED, NO_LED, 67, NO_LED, NO_LED, 69, 70, NO_LED, 71, 72, 73 }
}, {
{ 7, 8 }, { 22, 8 }, { 37, 8 }, { 52, 8 }, { 67, 8 }, { 82, 8 }, { 97, 8 }, { 112, 8 }, { 127, 8 }, { 142, 8 }, { 157, 8 }, { 172, 8 }, { 187, 8 }, { 202, 8 }, { 209, 8 }, { 217, 8 }, { 231, 8 }, { 11, 24 }, { 30, 24 }, { 45, 24 }, { 60, 24 }, { 75, 24 }, { 90, 24 }, { 104, 24 }, { 119, 24 }, { 134, 24 }, { 149, 24 }, { 164, 24 }, { 179, 24 }, { 194, 24 }, { 212, 24 }, { 231, 24 }, { 11, 40 }, { 34, 40 }, { 49, 40 }, { 64, 40 }, { 79, 40 }, { 94, 40 }, { 108, 40 }, { 123, 40 }, { 138, 40 }, { 153, 40 }, { 168, 40 }, { 183, 40 }, { 198, 40 }, { 200, 40 }, { 215, 32 }, { 231, 40 }, { 9, 56 }, { 17, 56 }, { 26, 56 }, { 41, 56 }, { 56, 56 }, { 71, 56 }, { 86, 56 }, { 101, 56 }, { 116, 56 }, { 131, 56 }, { 146, 56 }, { 161, 56 }, { 175, 56 }, { 196, 56 }, { 217, 56 }, { 231, 56 }, { 10, 72 }, { 29, 72 }, { 48, 72 }, { 103, 72 }, { 112, 72 }, { 161, 72 }, { 176, 72 }, { 202, 72 }, { 217, 72 }, { 231, 72 }, { 7, 40 }, { 119, 40 }, { 231, 40 } }, {
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
1, 1, 1, 4, 4, 1, 1, 1, 1, 1,
2, 2, 2
} };
#endif