1
0
Fork 0

Update GPIO API usage in keyboard code (#23361)

This commit is contained in:
Ryan 2024-05-03 15:21:29 +10:00 committed by GitHub
parent 5426a7a129
commit d09a06a1b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
390 changed files with 3912 additions and 3913 deletions

View file

@ -129,11 +129,11 @@ void encoder_triple_click(void) {
void matrix_init_kb(void) {
matrix_init_user();
setPinInputHigh(ENCODER_SWITCH);
gpio_set_pin_input_high(ENCODER_SWITCH);
}
void matrix_scan_kb(void) {
matrix_scan_user();
if (readPin(ENCODER_SWITCH)) {
if (gpio_read_pin(ENCODER_SWITCH)) {
if (encoder_pressed) { // release switch
encoder_pressed = 0;
encoder_press_combo += 1;