TinyCircuits Thumby and Thumby Color#10303
Conversation
|
@relic-se Do you still want to add these? |
|
@tannewt I'd love to, but TinyCircuits hasn't yet registered a USB PID with the Raspberry Pi Foundation. I've been in touch with them when I first created this PR, but I haven't touched base since then. I'll plan to get back in contact with TinyCircuits unless you have an alternative. |
|
@relic-se Just request one from pid.codes. I'll approve since you are a third-party. |
|
I've created the request for PIDs from pid.codes as suggested. pidcodes/pidcodes.github.com#1163 |
|
I need to do one last hardware test on both devices then I'll mark this ready for review. |
|
I've finally got around to testing the boards, and I located some issues with pin assignments on the Thumby Color. I was able to get a copy of the schematics from TinyCircuits (which was otherwise not fully published) and should have the board definitions updated shortly. |
|
The Thumby Color now works and I've validated its operation with the following script: import board
import keypad
import rainbowio
import time
import adafruit_rgbled
NAMES = ("MENU", "A", "B", "BUMPER_LEFT", "BUMPER_RIGHT", "UP", "DOWN", "LEFT", "RIGHT")
keys = keypad.Keys(
pins=(
board.BUTTON_MENU,
board.BUTTON_A,
board.BUTTON_B,
board.BUTTON_BUMPER_LEFT,
board.BUTTON_BUMPER_RIGHT,
board.BUTTON_UP,
board.BUTTON_DOWN,
board.BUTTON_LEFT,
board.BUTTON_RIGHT,
),
value_when_pressed=False,
pull=True,
)
led = adafruit_rgbled.RGBLED(board.LED_R, board.LED_G, board.LED_B)
color = 0
while True:
while (event := keys.events.get()):
if event.pressed:
print(NAMES[event.key_number])
led.color = rainbowio.colorwheel(color % 256)
color += 1
time.sleep(0.01) |
tannewt
left a comment
There was a problem hiding this comment.
Thank you! CI is broken for other reasons.
tannewt
left a comment
There was a problem hiding this comment.
Actually, you'll want to change the branch you are targeting. Right now it is set to 9.2.x.
|
@tannewt Thanks, got it fixed. I'm sure that was due to the age of this PR. |
The Thumby and Thumby Color are two tiny, nostalgia-inducing game consoles which are powered by the RP2040 and RP2350, respectively. Both consoles support MicroPython with their built-in firmware, but I figured it would be fun to be able to port over some CircuitPython games.
The Thumby board definitions were based on the open source schematic. Some but not all functionality has been tested (display + buttons). There are two major revisions of this board which are identified by pull down resistors on 4 of the GPIO. I am currently unaware of the differences between the two boards, and have decided to target this firmware for the most recent revision.
The Thumby Color board definitions are based on the open source engine library, TinyCircuits-Tiny-Game-Engine. I haven't been able to test this build as I mistakenly lost my device. (I mean it, they're tiny!)