I’ve seen a lot of these little “fake notch” apps pop up since Apple’s new MacBooks were announced, but I didn’t see a lot of source code – so of course I was nerd sniped.
I saw flip dots (also called flip discs) last year for the first time and instantly knew I needed some in my life. If you’re not familiar with them, check out how they work!
The particular model I have is the ALFAZETA XY5, which may be the easiest way to get up and running, but certainly not the least expensive.
After getting the board, all you need is:
- 24V power supply
- Something that talks over RS485 (in my case I used an ESP8266 connected to a MAX3485 board)
- Their documentation that defines the controller data protocol
I plan to write in more detail how it all works, but for this demo the stack is:
For even easier prototyping, I’ve added Swift Playground support to my SwiftGFXWrapper project!
Another fun project from a few weekends ago: Wrapping the Adafruit GFX in Objective C and bridging to Swift for some neat 8-bit effects!
The most interesting component of this project so far has been building a Swift closure that is executed in C as a
const void *. This was new territory for me and a lot of fun to figure out!
SwiftUI is turning into my go-to for rapid prototyping. Here’s an example of a light / dark mode switcher that I think would work well on web…