qmk cformat
(#9500)
This commit is contained in:
parent
cb13dd0a33
commit
3d6d899666
6 changed files with 50 additions and 54 deletions
|
@ -24,7 +24,6 @@
|
||||||
#include "i2c_master.h"
|
#include "i2c_master.h"
|
||||||
#include "progmem.h"
|
#include "progmem.h"
|
||||||
|
|
||||||
|
|
||||||
// This is a 7-bit address, that gets left-shifted and bit 0
|
// This is a 7-bit address, that gets left-shifted and bit 0
|
||||||
// set to 0 for write, 1 for read (as per I2C protocol)
|
// set to 0 for write, 1 for read (as per I2C protocol)
|
||||||
// The address will vary depending on your wiring:
|
// The address will vary depending on your wiring:
|
||||||
|
@ -178,9 +177,9 @@ void IS31FL3741_init(uint8_t addr) {
|
||||||
// Set Pull up & Down for SWx CSy
|
// Set Pull up & Down for SWx CSy
|
||||||
IS31FL3741_write_register(addr, ISSI_REG_PULLDOWNUP, 0x77);
|
IS31FL3741_write_register(addr, ISSI_REG_PULLDOWNUP, 0x77);
|
||||||
|
|
||||||
// IS31FL3741_update_led_scaling_registers(addr, 0xFF, 0xFF, 0xFF);
|
// IS31FL3741_update_led_scaling_registers(addr, 0xFF, 0xFF, 0xFF);
|
||||||
|
|
||||||
// Wait 10ms to ensure the device has woken up.
|
// Wait 10ms to ensure the device has woken up.
|
||||||
wait_ms(10);
|
wait_ms(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(WS2812_TRST_US)
|
#if !defined(WS2812_TRST_US)
|
||||||
#define WS2812_TRST_US 280
|
# define WS2812_TRST_US 280
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* User Interface
|
/* User Interface
|
||||||
|
|
|
@ -72,8 +72,7 @@ bool process_ucis(uint16_t keycode, keyrecord_t *record) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool special = keycode == KC_SPC || keycode == KC_ENT ||
|
bool special = keycode == KC_SPC || keycode == KC_ENT || keycode == KC_ESC || keycode == KC_BSPC;
|
||||||
keycode == KC_ESC || keycode == KC_BSPC;
|
|
||||||
if (qk_ucis_state.count >= UCIS_MAX_SYMBOL_LENGTH && !special) {
|
if (qk_ucis_state.count >= UCIS_MAX_SYMBOL_LENGTH && !special) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,9 +100,7 @@ const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||||
.set_color_all = IS31FL3737_set_color_all,
|
.set_color_all = IS31FL3737_set_color_all,
|
||||||
};
|
};
|
||||||
# else
|
# else
|
||||||
static void flush(void) {
|
static void flush(void) { IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, DRIVER_ADDR_2); }
|
||||||
IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, DRIVER_ADDR_2);
|
|
||||||
}
|
|
||||||
|
|
||||||
const rgb_matrix_driver_t rgb_matrix_driver = {
|
const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||||
.init = init,
|
.init = init,
|
||||||
|
|
Loading…
Reference in a new issue