diff --git a/code/code.py b/code/code.py new file mode 100644 index 0000000..a2f2545 --- /dev/null +++ b/code/code.py @@ -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 diff --git a/keymap.md b/keymap.md new file mode 100644 index 0000000..edb218e --- /dev/null +++ b/keymap.md @@ -0,0 +1,5 @@ + USB +3 7 11 15 +2 6 10 14 +1 5 9 13 +0 4 8 12 diff --git a/urls.txt b/urls.txt new file mode 100644 index 0000000..0e1ee2d --- /dev/null +++ b/urls.txt @@ -0,0 +1,2 @@ +https://github.com/pimoroni/keybow2040-circuitpython +https://learn.pimoroni.com/tutorial/hel/assembling-keybow-2040 \ No newline at end of file