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

@ -20,9 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
static inline void backlight_set_value(uint8_t index, uint8_t level) {
static const uint8_t backlight_pins[] = BACKLIGHT_PINS;
if (level) {
setPinOutput(backlight_pins[index]);
gpio_set_pin_output(backlight_pins[index]);
} else {
setPinInput(backlight_pins[index]);
gpio_set_pin_input(backlight_pins[index]);
}
}