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
1
main.py
1
main.py
|
@ -15,6 +15,7 @@ else:
|
||||||
|
|
||||||
#####
|
#####
|
||||||
# NeoPixel on kb2040 (tune accordingly / remove if different mcu)
|
# NeoPixel on kb2040 (tune accordingly / remove if different mcu)
|
||||||
|
if os.getenv('ARDUX_RGB_KB2040'):
|
||||||
from kmk.extensions.RGB import RGB, AnimationModes
|
from kmk.extensions.RGB import RGB, AnimationModes
|
||||||
rgb_ext = RGB(
|
rgb_ext = RGB(
|
||||||
pixel_pin=board.NEOPIXEL,
|
pixel_pin=board.NEOPIXEL,
|
||||||
|
|
|
@ -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