Move backlight config to data driven, part 1 (#19887)
This commit is contained in:
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Add backwards compatibility for existing keymaps
|
||||
static inline void backlight_set_value(uint8_t index, uint8_t level) {
|
||||
static const uint8_t backlight_pins[BACKLIGHT_LED_COUNT] = BACKLIGHT_PINS;
|
||||
static const uint8_t backlight_pins[] = BACKLIGHT_PINS;
|
||||
if (level) {
|
||||
setPinOutput(backlight_pins[index]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user