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
19
main.py
19
main.py
|
@ -15,15 +15,16 @@ else:
|
||||||
|
|
||||||
#####
|
#####
|
||||||
# NeoPixel on kb2040 (tune accordingly / remove if different mcu)
|
# NeoPixel on kb2040 (tune accordingly / remove if different mcu)
|
||||||
from kmk.extensions.RGB import RGB, AnimationModes
|
if os.getenv('ARDUX_RGB_KB2040'):
|
||||||
rgb_ext = RGB(
|
from kmk.extensions.RGB import RGB, AnimationModes
|
||||||
pixel_pin=board.NEOPIXEL,
|
rgb_ext = RGB(
|
||||||
num_pixels=1,
|
pixel_pin=board.NEOPIXEL,
|
||||||
val_limit=100,
|
num_pixels=1,
|
||||||
val_default=25,
|
val_limit=100,
|
||||||
animation_mode=AnimationModes.BREATHING_RAINBOW
|
val_default=25,
|
||||||
)
|
animation_mode=AnimationModes.BREATHING_RAINBOW
|
||||||
ardux_keyboard.extensions.append(rgb_ext)
|
)
|
||||||
|
ardux_keyboard.extensions.append(rgb_ext)
|
||||||
|
|
||||||
#####
|
#####
|
||||||
# Main
|
# Main
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
CIRCUITPY_BLE_NAME = "ARDUX [L|R] [board]"
|
# General setup & config
|
||||||
#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
|
|
||||||
ARDUX_SIZE = "[STANDARD|BIG|40%]"
|
ARDUX_SIZE = "[STANDARD|BIG|40%]"
|
||||||
ARDUX_HAND = "[LEFT|RIGHT]"
|
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