Commit Graph

9 Commits

Author SHA1 Message Date
david 14781b8c07 refactor: move TileLayoutHelper from DisplayManager.h to Style.h
- Pure static helper class moved from DisplayManager.h to Style.h
- Drivers now use TileLayoutHelper::calculateLayouts() directly
- Remove extern DisplayManager references from display drivers
- Drop LGFX_USE_V1 build flag (no longer needed)
- Add delay(LOOP_YIELD_MS) in S3 loop to prevent watchdog
2026-05-29 20:17:15 -07:00
david d6eb2cd561 feat(esp32-s3-lcd-43): add touch test harness and coordinate transformation 2026-02-18 18:58:37 -08:00
david bfba3b02fd feat(doorbell): add staged boot sequence and refactor main loop 2026-02-18 00:35:48 -08:00
david 46289b9d40 refactor(touch): centralize touch handling in DoorbellLogic 2026-02-17 23:35:59 -08:00
david c4adb38576 feat(display): add active state parameter to hint animation
1. **Added `active` parameter to hint animation**
   - `updateHint()` now accepts a boolean `active` parameter across both display drivers (TFT and GFX)
   - When `active=true`: faster pulse animation (500ms period) during active hold
   - When `active=false`: slower pulse animation (2000ms period) during idle state

2. **Improved animation calculations**
   - Replaced modulo operator with `fmodf()` for cleaner float calculations
   - Standardized to `static_cast<uint8_t>()` for type conversions
   - Fixed GFX driver to use `color565()` method instead of manual bit shifting

3. **Updated hint display logic**
   - Now differentiates between "holding" state (fast pulse) and "idle" state (slow pulse)
   - Hint draws at both states when `holdStartX >= 0` (touch position captured)

4. **Added code formatter task**
   - New `mise.toml` task for running clang-format across all source files

- Users get **visual feedback differentiation**: fast pulsing during active hold vs. slow pulsing when idle
- More intuitive UI that clearly indicates whether a long-press is in progress or just waiting
- Cleaner, more maintainable code with standardized calculations and type conversions
2026-02-17 05:11:02 -08:00
david 0ace263324 feat(display): draw hint animation at touch position instead of center 2026-02-17 03:49:34 -08:00
david 23712a152b style: fix indentation and formatting in doorbell code 2026-02-17 03:19:12 -08:00
david d61c9c60bf refactor(display): improve touch handling and code formatting 2026-02-17 03:10:52 -08:00
david 838afaa36f consolidate sketches 2026-02-16 19:08:47 -08:00