No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

code.py 317B

12345678910111213141516
  1. """
  2. Main program loop for SnakeSwitch
  3. https://github.com/adafruit/snakeswitch
  4. * Author(s): Brennen Bearnes
  5. """
  6. import board
  7. from snakeswitch import SnakeSwitch
  8. from switch_config import LAYOUTS
  9. SWITCH_PINS = (board.D5, board.D6, board.D9)
  10. ss = SnakeSwitch(SWITCH_PINS, LAYOUTS)
  11. while True:
  12. ss.advance_frame()