mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2025-12-22 22:21:58 +00:00
Update GPIO API usage in keyboard code (#23361)
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
#include "quantum.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
setPinOutput(B1);
|
||||
gpio_set_pin_output(B1);
|
||||
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_kb(layer_state_t state) {
|
||||
writePin(B1, layer_state_cmp(state, 1));
|
||||
gpio_write_pin(B1, layer_state_cmp(state, 1));
|
||||
return layer_state_set_user(state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user