Hardware: ESP32-2432S028 non-R CYD (same proven ILI9341/XPT2046 display/touch mapping as Cateau Systems). Separate project and source code from Cateau and SpoolSense. UI: 320 x 240 landscape, four tall lane cards.
- Wi-Fi setup without hardcoded credentials: on first boot or after a failed 15-second connection, a temporary password-protected Wi-Fi access point named
BT-CYD-XXXXXXappears. The screen shows its random password andhttp://192.168.4.1. Join this AP with phone or computer; browse tohttp://192.168.4.1; enter the home Wi-Fi SSID and password. The CYD stores them in ESP32 NVS and reboots. The AP's password changes on each setup session. After a successful connection it prints its local IP to the USB serial monitor at 115200 baud. - Moonraker target plain HTTP:
http://trident.5catventures.com(no TLS setup/certificates)./server/infoindicates API reachability. - Polls
/printer/afc/statusevery 5 seconds. Displays status and material per lane and spool color if AFC returns usable color data. Tap opens detail with filament name and AFC status. - All LOAD / UNLOAD / CHANGE actions remain disabled, even when online. No API path issues gcode or motion commands.
- If Wi-Fi/Moonraker/AFC data is unavailable, the UI explicitly shows offline/no data rather than inventing state. Serial monitor provides read-only HTTP/parse failure diagnostics.
- Open this repo in VS Code with PlatformIO; select
boxturtle-cyd> General > Upload and Monitor. - On first boot, use the setup network and password displayed on the CYD to join its Wi-Fi AP. Open
http://192.168.4.1on the connected device. Enter home Wi-Fi SSID and password, save. - After restart, CYD should show
AFC LIVEand actual lane states (provided the Trident can be reached from the CYD's Wi-Fi segment and AFC's/printer/afc/statusendpoint returns the expected structure). If it showsNO APIorNO AFC, view the serial monitor for the failing endpoint. - Tap every lane and Back. Confirm that touch navigation still works and action buttons remain disabled.
The AFC webhook's response shape is taken from AFCProject/AFC-Klipper-Add-On extras/AFC.py: result["status:"]["AFC"]["Turtle_1"]["lane1".."lane4"] in the referenced upstream revision. Verify against the actual printer: custom versions may differ. Changes are not yet compiled or flashed; the v0.1 firmware is the last known-good build.
platformio.ini: PlatformIO environment, LovyanGFX and ArduinoJson dependencies.include/CydBoard.h: same pin map and touch rotation as the tested v0.1.src/NetworkManager.h/.cpp: Wi-Fi station connection and temporary setup AP.src/MoonrakerClient.h/.cpp: HTTP-only Moonraker/AFC read-only status.src/RemoteUi.h/.cpp: four-column lane UI and Wi-Fi setup instructions.src/main.cpp: coordination between UI, Wi-Fi, and Moonraker.
The v0.2 test candidate should be committed only after on-device build/upload/testing. The project intentionally has no OTA, executable lane commands, or tangle detection yet.