aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-11-17 16:00:25 +0000
committers-ol <s+removethis@s-ol.nu>2022-11-17 16:00:25 +0000
commit97e3cdbefda5bea7d124830620aedd36dc6b269b (patch)
tree849cc23fa2fbedded4cd1d152aa800d192621a9a
parentfail gracefully if no display is installed (diff)
downloadfirmware-97e3cdbefda5bea7d124830620aedd36dc6b269b.tar.gz
firmware-97e3cdbefda5bea7d124830620aedd36dc6b269b.zip
add r3 board rev
-rw-r--r--config.py2
-rw-r--r--hex33board/boards/r3_d4cf583.py27
2 files changed, 28 insertions, 1 deletions
diff --git a/config.py b/config.py
index fb226bb..37f274c 100644
--- a/config.py
+++ b/config.py
@@ -1,3 +1,3 @@
-from hex33board.boards.r2_defcd99 import *
+from hex33board.boards.r3_d4cf583 import *
dev_mode = False
diff --git a/hex33board/boards/r3_d4cf583.py b/hex33board/boards/r3_d4cf583.py
new file mode 100644
index 0000000..c6cbded
--- /dev/null
+++ b/hex33board/boards/r3_d4cf583.py
@@ -0,0 +1,27 @@
+import board
+
+from ..matrix import Matrix
+
+matrix_pins = (
+ # cols
+ [board.GP9, board.GP4, board.GP0, board.GP6, board.GP7, board.GP8],
+ # rows
+ [
+ board.GP13,
+ board.GP12,
+ board.GP11,
+ board.GP10,
+ board.GP5,
+ board.GP1,
+ board.GP2,
+ board.GP3,
+ board.GP22,
+ ],
+)
+
+pixels_pin = board.GP17
+display_pins = { "sda": board.GP14, "scl": board.GP15 }
+
+midi_pins = { "tx": board.GP16, "rx": None }
+audio_pins = { "left_channel": board.GP18, "right_channel": board.GP19 }
+i2c_pins = { "sda": board.GP20, "scl": board.GP21 }