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

@ -24,13 +24,13 @@ void set_big_LED_rgb(uint8_t r_mode, uint8_t g_mode, uint8_t b_mode) {
void set_big_LED_r(uint8_t mode) {
switch(mode) {
case LED_ON:
setPinOutput(BIG_LED_R_PIN);
writePin(BIG_LED_R_PIN, GPIO_STATE_HIGH);
gpio_set_pin_output(BIG_LED_R_PIN);
gpio_write_pin(BIG_LED_R_PIN, GPIO_STATE_HIGH);
break;
case LED_OFF:
setPinOutput(BIG_LED_R_PIN);
writePin(BIG_LED_R_PIN, GPIO_STATE_LOW);
gpio_set_pin_output(BIG_LED_R_PIN);
gpio_write_pin(BIG_LED_R_PIN, GPIO_STATE_LOW);
break;
default:
@ -41,13 +41,13 @@ void set_big_LED_r(uint8_t mode) {
void set_big_LED_g(uint8_t mode) {
switch(mode) {
case LED_ON:
setPinOutput(BIG_LED_G_PIN);
writePin(BIG_LED_G_PIN, GPIO_STATE_HIGH);
gpio_set_pin_output(BIG_LED_G_PIN);
gpio_write_pin(BIG_LED_G_PIN, GPIO_STATE_HIGH);
break;
case LED_OFF:
setPinOutput(BIG_LED_G_PIN);
writePin(BIG_LED_G_PIN, GPIO_STATE_LOW);
gpio_set_pin_output(BIG_LED_G_PIN);
gpio_write_pin(BIG_LED_G_PIN, GPIO_STATE_LOW);
break;
default:
@ -58,13 +58,13 @@ void set_big_LED_g(uint8_t mode) {
void set_big_LED_b(uint8_t mode) {
switch(mode) {
case LED_ON:
setPinOutput(BIG_LED_B_PIN);
writePin(BIG_LED_B_PIN, GPIO_STATE_HIGH);
gpio_set_pin_output(BIG_LED_B_PIN);
gpio_write_pin(BIG_LED_B_PIN, GPIO_STATE_HIGH);
break;
case LED_OFF:
setPinOutput(BIG_LED_B_PIN);
writePin(BIG_LED_B_PIN, GPIO_STATE_LOW);
gpio_set_pin_output(BIG_LED_B_PIN);
gpio_write_pin(BIG_LED_B_PIN, GPIO_STATE_LOW);
break;
default: