ducky: cosmetics

This commit is contained in:
Reza Jelveh 2020-12-07 18:14:01 +08:00
parent acfa4c309d
commit 3ac4eb8fd9
3 changed files with 6 additions and 14 deletions

View File

@ -626,15 +626,9 @@ OSAL_IRQ_HANDLER(NUC123_PWMA_HANDLER) {
OSAL_IRQ_EPILOGUE(); OSAL_IRQ_EPILOGUE();
} }
static void init( void ) static void init(void) { MBI5042GP_init(); }
{
MBI5042GP_init();
}
static void flush( void ) static void flush(void) { MBI5042GP_write_pwm_buffers(); }
{
MBI5042GP_write_pwm_buffers();
}
const rgb_matrix_driver_t rgb_matrix_driver = { const rgb_matrix_driver_t rgb_matrix_driver = {
.init = init, .init = init,

View File

@ -59,7 +59,7 @@ void MBI5042GP_disable_row(int row);
void MBI5042GP_enable_row(int row); void MBI5042GP_enable_row(int row);
// Lightness curve using the CIE 1931 lightness formula // Lightness curve using the CIE 1931 lightness formula
//Generated by the python script provided in http://jared.geek.nz/2013/feb/linear-led-pwm // Generated by the python script provided in http://jared.geek.nz/2013/feb/linear-led-pwm
const uint16_t CIE1931_16_CURVE[] PROGMEM = { const uint16_t CIE1931_16_CURVE[] PROGMEM = {
0, 7, 14, 21, 28, 36, 43, 50, 57, 64, 0, 7, 14, 21, 28, 36, 43, 50, 57, 64,
71, 78, 85, 93, 100, 107, 114, 121, 128, 135, 71, 78, 85, 93, 100, 107, 114, 121, 128, 135,

View File

@ -7,8 +7,6 @@ RGB_KEYCODES_ENABLE := yes
OPT_DEFS += -DRGB_MATRIX_ENABLE OPT_DEFS += -DRGB_MATRIX_ENABLE
OPT_DEFS += -DMBI5042 OPT_DEFS += -DMBI5042
# MCU name
#MCU = at90usb1286
MCU_FAMILY = NUMICRO MCU_FAMILY = NUMICRO
MCU_SERIES = NUC123SD4AN0 MCU_SERIES = NUC123SD4AN0