live
RF Socket
ESP32 that switches RF power outlets over HTTP and doubles as a streaming OLED.
An ESP32 with an SSD1306 display sits on the shelf and switches the RF power outlets in the room over HTTP. The same board is also a small screen: a PC client or an Android app streams images, GIFs and video to it, it keeps a history of what was sent, and when nothing is going on it falls back to a status screen or a clock.
Everything about it is shaped by what the board does not have. The display is one bit per pixel, so the host converts and dithers before anything goes over the wire rather than sending frames the device would have to reduce itself. Flash is small and finite, so the stored clips run against an explicit budget in both bytes and count instead of growing until the filesystem fails. The RF codes are sniffed from the existing remotes and kept with the WiFi credentials in a config file that is never committed.
The parts of the firmware that are ordinary Python - the clip format, the player, the layout, the clock - are written so they import and run on CPython, which is how device code gets a test suite without a board attached. The Android app has its own unit tests. Three languages meet here, and the interesting work is at the seams between them.