Update GPIO API usage in keyboard code (#23361)
This commit is contained in:
@@ -20,12 +20,12 @@ void matrix_init_kb(void)
|
||||
audio_init();
|
||||
PLAY_SONG(test_sound);
|
||||
// Fix port B5
|
||||
setPinInput(B5);
|
||||
writePinHigh(B5);
|
||||
gpio_set_pin_input(B5);
|
||||
gpio_write_pin_high(B5);
|
||||
#else
|
||||
// If we're not using the audio pin, drive it low
|
||||
setPinOutput(C6);
|
||||
writePinLow(C6);
|
||||
gpio_set_pin_output(C6);
|
||||
gpio_write_pin_low(C6);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "quantum.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
setPinOutput(E6);
|
||||
gpio_set_pin_output(E6);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user