2023-04-19 12:31:18 +00:00
|
|
|
import board
|
|
|
|
import os
|
|
|
|
|
|
|
|
#####
|
2023-04-19 15:50:56 +00:00
|
|
|
# Main keyboard object
|
2023-04-19 16:03:27 +00:00
|
|
|
from ardux.kb import ArduxKeyboard
|
2023-04-19 15:50:56 +00:00
|
|
|
ardux_keyboard = ArduxKeyboard()
|
2023-04-19 12:31:18 +00:00
|
|
|
|
|
|
|
#####
|
|
|
|
# NeoPixel on kb2040 (tune accordingly / remove if different mcu)
|
|
|
|
from kmk.extensions.RGB import RGB, AnimationModes
|
|
|
|
rgb_ext = RGB(
|
|
|
|
pixel_pin=board.NEOPIXEL,
|
|
|
|
num_pixels=1,
|
|
|
|
val_limit=100,
|
|
|
|
val_default=25,
|
2023-04-19 15:50:56 +00:00
|
|
|
animation_mode=AnimationModes.BREATHING_RAINBOW
|
2023-04-19 12:31:18 +00:00
|
|
|
)
|
2023-04-19 15:50:56 +00:00
|
|
|
ardux_keyboard.extensions.append(rgb_ext)
|
2023-04-19 12:31:18 +00:00
|
|
|
|
|
|
|
#####
|
|
|
|
# Main
|
|
|
|
if __name__ == '__main__':
|
2023-04-19 15:50:56 +00:00
|
|
|
ardux_keyboard.go()
|
2023-04-19 12:31:18 +00:00
|
|
|
|