您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字。
 
 

16 行
317 B

"""
Main program loop for SnakeSwitch
https://github.com/adafruit/snakeswitch
* Author(s): Brennen Bearnes
"""
import board
from snakeswitch import SnakeSwitch
from switch_config import LAYOUTS
SWITCH_PINS = (board.D5, board.D6, board.D9)
ss = SnakeSwitch(SWITCH_PINS, LAYOUTS)
while True:
ss.advance_frame()