From 5dd89d820ede6be63114878731dc9874a3de1ae6 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 25 Aug 2021 09:45:46 +0200 Subject: [PATCH] =?UTF-8?q?code=20+=20url=20+=20keymap=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/code.py | 16 ++++++++++++++++ keymap.md | 5 +++++ urls.txt | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 code/code.py create mode 100644 keymap.md create mode 100644 urls.txt 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