#include "m57.h" #ifdef RGB_MATRIX_ENABLE /* led_config_t g_led_config = { { { 0, 1, 2, 3, 4 }, { 5, 6, 7, 8, 9 }, { 10, 11, 12, 13, 14 }, { NO_LED, NO_LED, 15, 16, 17 }, { 18, 19, 20, 21, 22 }, { 23, 24, 25, 26, 27 }, { 28, 29, 30, 31, 32 }, { 33, 34, 35, NO_LED,NO_LED } }, { // LED Index to Physical Position {0,15}, {24,15}, {48,15}, {72,15}, {96,15}, {0,30}, {24,30}, {48,30}, {72,30}, {96,30}, {0,45}, {24,45}, {48,45}, {72,45}, {96,45}, {48,63}, {72,63}, {96,63}, {120,15}, {144,15}, {168,15}, {192,15}, {223,15}, {120,30}, {144,30}, {168,30}, {192,30}, {223,30}, {120,45}, {144,45}, {168,45}, {192,45}, {223,45}, {120,63}, {144,63}, {168,63}, }, { // 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,\ } }; */ led_config_t g_led_config = { { { 0, 1, 2, 3, 4 , 5, NO_LED }, { NO_LED, 29, 30, 31, 32, 33, 34 }, { 6, 7, 8, 9, 10, 11, 12 }, { 35, 36, 37, 38, 39, 40, 41 }, { 13, 14, 15, 16, 17, 18, 19 }, { 42, 43, 44, 45, 46, 47, 48 }, { 20, 21, 22, 23, 24, 25, NO_LED }, { NO_LED, 49, 50,51, 52, 53, 54 }, { NO_LED, NO_LED, NO_LED, 26, 27,28,NO_LED }, { NO_LED, 55, 56, 57 , NO_LED,NO_LED, NO_LED }, }, { // LED Index to Physical Position {0,12}, {16,12}, {32,12}, {48,12}, {64,12},{80,12}, // {128,12}, {144,12}, {160,12}, {178,12},{194,12}, {210,12}, {0,25}, {16,25}, {32,25}, {48,25}, {64,25},{80,25}, {96,25}, // {112,25}, {128,25}, {144,25}, {160,25}, {178,25},{194,25}, {210,25}, {0,38}, {16,38}, {32,38}, {48,38}, {64,38},{80,38}, {96,38}, // {112,38}, {128,38}, {144,38}, {160,38}, {178,38},{194,38}, {210,38}, {0,51}, {16,51}, {32,51}, {48,51}, {64,51},{80,51}, // {128,51}, {144,51}, {160,51}, {178,51},{194,51}, {210,51}, {32,63}, {48,63}, {64,63}, // {112,63}, {128,63}, {144,63}, {160,63}, {178,63}, {128,12}, {144,12}, {160,12}, {178,12},{194,12}, {210,12}, {112,25}, {128,25}, {144,25}, {160,25}, {178,25},{194,25}, {210,25}, {112,38}, {128,38}, {144,38}, {160,38}, {178,38},{194,38}, {210,38}, {128,51}, {144,51}, {160,51}, {178,51},{194,51}, {210,51}, {112,63}, {128,63}, {144,63}, }, { // 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,4,\ 4,4,4,4,4,4,\ 4,4,4, } }; void bootmagic_scan(void) { // We need multiple scans because debouncing can't be turned off. // matrix_scan(); // wait_ms(BOOTMAGIC_DEBOUNCE); // matrix_scan(); // if (bootmagic_should_reset()) { // bootmagic_reset_eeprom(); // // Jump to bootloader. // bootloader_jump(); // } } #endif #ifdef RTT_DEBUG_QF #include "rtt_viewer/SEGGER_RTT.h" extern int8_t sendchar(uint8_t c); int8_t sendchar(uint8_t c){ SEGGER_RTT_PutChar(0, c); return 0; } #endif