Update GPIO API usage in keyboard code (#23361)
This commit is contained in:
parent
5426a7a129
commit
d09a06a1b3
390 changed files with 3912 additions and 3913 deletions
|
@ -292,8 +292,8 @@ const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
|
|||
|
||||
void matrix_init_kb(void)
|
||||
{
|
||||
setPinOutput(LED_CAPS_LOCK_PIN);
|
||||
writePinLow(LED_CAPS_LOCK_PIN);
|
||||
gpio_set_pin_output(LED_CAPS_LOCK_PIN);
|
||||
gpio_write_pin_low(LED_CAPS_LOCK_PIN);
|
||||
|
||||
is31fl3731_init_drivers();
|
||||
|
||||
|
@ -363,7 +363,7 @@ bool led_update_kb(led_t led_state)
|
|||
{
|
||||
bool res = led_update_user(led_state);
|
||||
if (res) {
|
||||
writePin(LED_CAPS_LOCK_PIN, led_state.caps_lock);
|
||||
gpio_write_pin(LED_CAPS_LOCK_PIN, led_state.caps_lock);
|
||||
|
||||
if (rgb_state.state != SELF_TESTING) {
|
||||
if (led_state.caps_lock) {
|
||||
|
|
|
@ -296,8 +296,8 @@ const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
|
|||
|
||||
void matrix_init_kb(void)
|
||||
{
|
||||
setPinOutput(LED_CAPS_LOCK_PIN);
|
||||
writePinLow(LED_CAPS_LOCK_PIN);
|
||||
gpio_set_pin_output(LED_CAPS_LOCK_PIN);
|
||||
gpio_write_pin_low(LED_CAPS_LOCK_PIN);
|
||||
|
||||
is31fl3731_init_drivers();
|
||||
|
||||
|
@ -358,7 +358,7 @@ bool led_update_kb(led_t led_state)
|
|||
{
|
||||
bool res = led_update_user(led_state);
|
||||
if (res) {
|
||||
writePin(LED_CAPS_LOCK_PIN, led_state.caps_lock);
|
||||
gpio_write_pin(LED_CAPS_LOCK_PIN, led_state.caps_lock);
|
||||
|
||||
if (rgb_state.state != SELF_TESTING) {
|
||||
if (led_state.caps_lock) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue