Beispiel #1
0
void matrix_scan_kb(void) {
  // if LEDs were previously on before poweroff, turn them back on
  if (rgb_init == false && rgblight_config.enable) {
    i2c_transmit(0xb0, (uint8_t*)led, 3 * RGBLED_NUM, 100);
    rgb_init = true;
  }

  rgblight_task();
  matrix_scan_user();
}
Beispiel #2
0
void matrix_scan_user(void) {
    rgblight_task();
     /* add other tasks to be done on each matrix scan */
}