From last time: I'm beginning to a trip down the retro computing rabbithole, and what can be more retro than "Blinkenlights"?
I mean this!
....when the computer does something we flash a whole bunch of lights. It's that easy: I/O? sure. Register contents? Data and Address lines? Uh huh. "AQUS." "APRES" "CACN" "CAPR" etc? Don't know what the hell it means, but, yep.
The primary goal for Racduino: see what data and address lines on the RCA180x are doing with minimal effort when stepping through machine code instructions. It would be not too hard to use LEDs or even small incandescents for this, or an MSO, but I don't want to spend too much time wiring and then rewiring a small element of a larger project.
Let's use Python and a Raspberry Pi instead and get it done.
My simple dev platform: Raspberry Pi4B, Thonny Python interpreter, keyboard/mouse, and the good old MacBook Pro (Sierra!) for serfing while I work. The board on the right is perf and has pots and momentary switches, wired to dupont type female connectors. For this proof of concept it's used to pull Pi4's GPIO pins to ground (details of Pi4 pullup/down is here). The larger 23" monitor will be replaced with something much smaller sometime soon.
So how does it work? You can spend a lot of time on the exact look and feel of your Blinkenlight masterpiece, but today this is just a POC, with 5 pins, one rectangle, and one bit of text.
Here's a screenshot with all GPIO pins at +
I won't go through line by line what this does--I think if you are OK with python it should be pretty self explanatory. If you have questions or can think of improvements comment away....The led_map dictionary captures the GPIO pin as the key and the location of the graphic in a 2 member value list. Want more LEDs? Add to this dict.
It seems fast, bug free, and so far, good enough.
So what's next? Don't know, but if you need inspiration for your own virtual blinkenlight fiasco (as well as a lot of fun with retro computing props and a great waste of about 6 hours during covid), subscribe to netflix, and have a bunch of time to kill, take a look at the mini-series "Maniac".
Freeze frame any time you see blinkenlights--there are a many a'blinkin, and then try to name all the other retro computing crap you see on screen--endless fun right?
I think I see a PDP10, or maybe it's an 11? 70's era video consoles, analog video patch bays, old hard drive caddies, Mono CRT monitors, and on and on. The director said "I want more blinking light!" so I figure the art department had a lot of fun with this.
And, Emma Stone is foxy to boot. See you next time.