rework settings.toml to read easier ; add kb2040 option to the settings ; put kb2040 neopixel definition behind a conditional based on the setttings
This commit is contained in:
parent
a8dd5b329c
commit
80eed62cde
9
main.py
9
main.py
|
@ -15,15 +15,16 @@ else:
|
|||
|
||||
#####
|
||||
# NeoPixel on kb2040 (tune accordingly / remove if different mcu)
|
||||
from kmk.extensions.RGB import RGB, AnimationModes
|
||||
rgb_ext = RGB(
|
||||
if os.getenv('ARDUX_RGB_KB2040'):
|
||||
from kmk.extensions.RGB import RGB, AnimationModes
|
||||
rgb_ext = RGB(
|
||||
pixel_pin=board.NEOPIXEL,
|
||||
num_pixels=1,
|
||||
val_limit=100,
|
||||
val_default=25,
|
||||
animation_mode=AnimationModes.BREATHING_RAINBOW
|
||||
)
|
||||
ardux_keyboard.extensions.append(rgb_ext)
|
||||
)
|
||||
ardux_keyboard.extensions.append(rgb_ext)
|
||||
|
||||
#####
|
||||
# Main
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
CIRCUITPY_BLE_NAME = "ARDUX [L|R] [board]"
|
||||
#ARDUX_KMK_DEBUGGING = 1 # Code only looks for value ; Uncomment/Comment to enable/disable
|
||||
ARDUX_KMK_USB_DISK_ALWAYS = 1 # Code only looks for value ; Uncomment/Comment to enable/disable
|
||||
# General setup & config
|
||||
ARDUX_SIZE = "[STANDARD|BIG|40%]"
|
||||
ARDUX_HAND = "[LEFT|RIGHT]"
|
||||
ARDUX_BOARD = "[NAME_OF_BOARD]"
|
||||
ARDUX_BOARD = "see ardux/hardware for options"
|
||||
#ARDUX_RGB_KB2040 = 1 # Code only looks for value ; Uncomment/Comment to enable/disable
|
||||
|
||||
# Name shown via bluetooth
|
||||
CIRCUITPY_BLE_NAME = "ARDUX [L|R] [board]"
|
||||
|
||||
# Debugging / developmbit
|
||||
#ARDUX_KMK_DEBUGGING = 1 # Code only looks for value ; Uncomment/Comment to enable/disable
|
||||
ARDUX_KMK_USB_DISK_ALWAYS = 1 # Code only looks for value ; Uncomment/Comment to enable/disable
|
||||
|
|
Loading…
Reference in a new issue