Move backlight config to data driven, part 1 (#19887)

This commit is contained in:
Ryan 2023-02-21 12:05:40 +11:00 committed by GitHub
parent 4b69225c22
commit 9c0ce80d7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
128 changed files with 110 additions and 131 deletions

View file

@ -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 {