keybow2040/code/code.py

17 lines
310 B
Python

import board
from keybow2040 import Keybow2040
# Set up Keybow
i2c = board.I2C()
keybow = Keybow2040(i2c)
keys = keybow.keys
# Use cyan as the colour.
rgb = (0, 255, 255)
while True:
# Always remember to call keybow.update() on every iteration of your loop!
keybow.update()
if keys[0].pressed