Skip to content

Commit

Permalink
Fix 'qmk import-kbfirmware' WS2812 config (qmk#23976)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Jun 22, 2024
1 parent e5c80fc commit 6f03d20
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/python/qmk/importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,17 @@ def import_kbfirmware(kbfirmware_data):
info_data['indicators.scroll_lock'] = kbf_data['keyboard.pins.scroll']

if kbf_data['keyboard.pins.rgb']:
info_data['rgblight.animations.all'] = True
info_data['rgblight.animations'] = { # Comment here is to force multiline formatting
"breathing": True,
"rainbow_mood": True,
"rainbow_swirl": True,
"snake": True,
"knight": True,
"static_gradient": True,
"twinkle": True
}
info_data['rgblight.led_count'] = kbf_data['keyboard.settings.rgbNum']
info_data['rgblight.pin'] = kbf_data['keyboard.pins.rgb']
info_data['ws2812.pin'] = kbf_data['keyboard.pins.rgb']

if kbf_data['keyboard.pins.led']:
info_data['backlight.levels'] = kbf_data['keyboard.settings.backlightLevels']
Expand Down

0 comments on commit 6f03d20

Please sign in to comment.