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
|
|
@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "ghost_squid.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
setPinOutput(D0);
|
||||
writePinLow(D0);
|
||||
gpio_set_pin_output(D0);
|
||||
gpio_write_pin_low(D0);
|
||||
fn_led_off();
|
||||
|
||||
keyboard_pre_init_user();
|
||||
|
|
|
|||
|
|
@ -19,5 +19,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include "quantum.h"
|
||||
|
||||
#define fn_led_on() writePinLow(D0)
|
||||
#define fn_led_off() writePinHigh(D0)
|
||||
#define fn_led_on() gpio_write_pin_low(D0)
|
||||
#define fn_led_off() gpio_write_pin_high(D0)
|
||||
|
|
|
|||
|
|
@ -55,22 +55,22 @@ void select_col(uint8_t col) {
|
|||
|
||||
void matrix_init_custom(void) {
|
||||
/* Column output pins */
|
||||
setPinOutput(D1);
|
||||
setPinOutput(D2);
|
||||
setPinOutput(D3);
|
||||
setPinOutput(D4);
|
||||
setPinOutput(D5);
|
||||
setPinOutput(D6);
|
||||
gpio_set_pin_output(D1);
|
||||
gpio_set_pin_output(D2);
|
||||
gpio_set_pin_output(D3);
|
||||
gpio_set_pin_output(D4);
|
||||
gpio_set_pin_output(D5);
|
||||
gpio_set_pin_output(D6);
|
||||
|
||||
/* Row input pins */
|
||||
writePinHigh(B0);
|
||||
writePinHigh(B1);
|
||||
writePinHigh(B2);
|
||||
writePinHigh(B3);
|
||||
writePinHigh(B4);
|
||||
writePinHigh(B5);
|
||||
writePinHigh(B6);
|
||||
writePinHigh(C2);
|
||||
gpio_write_pin_high(B0);
|
||||
gpio_write_pin_high(B1);
|
||||
gpio_write_pin_high(B2);
|
||||
gpio_write_pin_high(B3);
|
||||
gpio_write_pin_high(B4);
|
||||
gpio_write_pin_high(B5);
|
||||
gpio_write_pin_high(B6);
|
||||
gpio_write_pin_high(C2);
|
||||
}
|
||||
|
||||
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue