kmk-paintbrush/main.py

26 lines
555 B
Python
Raw Normal View History

import board
import os
#####
# Main keyboard object
from ardux.hardware.thepaintbrush import ThePaintbrushArduxKeyboard
ardux_keyboard = ThePaintbrushArduxKeyboard()
#####
# 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,
animation_mode=AnimationModes.BREATHING_RAINBOW
)
ardux_keyboard.extensions.append(rgb_ext)
#####
# Main
if __name__ == '__main__':
ardux_keyboard.go()