コード例 #1
0
ファイル: jj4x4.c プロジェクト: Xyverz/qmk_firmware
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();
}
コード例 #2
0
ファイル: v1.c プロジェクト: 0tsuki/qmk_firmware
void matrix_scan_user(void) {
    rgblight_task();
     /* add other tasks to be done on each matrix scan */
}