code + url + keymap hinzugefügt
This commit is contained in:
parent
831f31e862
commit
5dd89d820e
|
@ -0,0 +1,16 @@
|
||||||
|
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
|
Loading…
Reference in New Issue