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
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue