Commit Graph
9 Commits
Author SHA1 Message Date
mangavalkandClaude Opus 5.5 75f677a2eb Move the Nano link to Serial2, update READMEs
- ESP32 talks to the Nano on UART2 (GPIO 17 TX / GPIO 16 RX); Serial (USB)
  is now free for debug output and boot messages no longer reach the Nano
- README: wiring table, actual schedule (clock from 08:00), TODO section
  for the rewiring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:16:24 +02:00
mangavalkandClaude Opus 5.5 c67a90ba09 Document optional Nano TX to ESP RX wire
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:12:35 +02:00
mangavalkandClaude Opus 5.5 6e4d5e152b Power-cycle-friendly Nano boot and ESP relay handling
Nano / driver:
- No full on/off flip at boot; the first display() after boot is a forced
  full redraw instead, since the physical dot state is unknown
- Send READY when booted

ESP32:
- relayOn() only switches and waits when the relay was off, and waits for
  the Nano's READY (3 s timeout) instead of a fixed 3 s on every frame
- relayOff() ends Serial and releases the TX pin so the idle-high line no
  longer back-powers the Nano through its RX pin
- No display commands are sent while the relay is off
- Switching the relay on cancels a pending power-off countdown

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:12:28 +02:00
mangavalkandClaude Opus 5.5 f7ffcf4ab3 Fix README diagram alignment
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:07:35 +02:00
mangavalkandClaude Opus 5.5 2be4c20c66 Document that the relay also powers the Nano
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:07:16 +02:00
mangavalkandClaude Opus 5.5 f1dbc35ebd Rewrite Nano serial parser as line based, fix protocol bugs
- Commands run on '\n' instead of busy-waiting for a byte count, which
  fixes s/F/T waiting for the next command and P drawing 0xFF garbage
- Invalid bitmaps no longer leak their data as commands; bitmap data is
  streamed so full-screen bitmaps still fit
- Store flip time as uint16 with magic marker, validate 50-2000 us
- Overflow-safe millis() handling for the periodic refresh
- Run the full refresh only after D or when serial is idle, so incoming
  data is not lost while the redraw blocks
- Put the boot refresh measurement behind MEASURE_REFRESH
- Fix DEBUG hex output and use F() strings to save RAM
- Driver: direct mode now updates the old buffer instead of re-setting
  the new one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:06:49 +02:00
mangavalkandClaude Opus 5.5 459937352a Remove _hannio_splash startup bitmap from the BROSE9323 driver
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:00:56 +02:00
mangavalkandClaude Opus 5.5 65caecf9b2 Extend .gitignore and add .gitattributes for line endings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 23:57:42 +02:00
mangavalkandClaude Opus 5.5 0e4d39c47b Restructure into a single PlatformIO project with nano and esp32 targets
- Shared BROSE9323 driver in lib/, ESPSERIAL selected via build_flags
- Nano firmware in src/nano, ESP32 firmware in src/esp32
- Move WiFi/MQTT credentials to gitignored secrets.h (template provided)
- Pin home-assistant-integration to 2.1.0 from the registry
- Add esp32_usb environment for first flash / recovery
- Add READMEs and CLAUDE.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 23:55:15 +02:00