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
|
@ -19,19 +19,19 @@
|
|||
|
||||
static inline void led_lwr(const bool on) {
|
||||
#ifdef LED_NUM_LOCK_PIN
|
||||
writePin(LED_NUM_LOCK_PIN, on);
|
||||
gpio_write_pin(LED_NUM_LOCK_PIN, on);
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void led_rse(const bool on) {
|
||||
#ifdef LED_SCROLL_LOCK_PIN
|
||||
writePin(LED_SCROLL_LOCK_PIN, on);
|
||||
gpio_write_pin(LED_SCROLL_LOCK_PIN, on);
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void led_caps(const bool on) {
|
||||
#ifdef LED_CAPS_LOCK_PIN
|
||||
writePin(LED_CAPS_LOCK_PIN, !on);
|
||||
gpio_write_pin(LED_CAPS_LOCK_PIN, !on);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue