Commit Graph

26 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 4030048401 refactor(AGENTS.md): update docs for simplified build commands and board config 2026-02-22 03:19:05 -08:00
david 72636f9ecf feat(Display): Improve touch handling and visual feedback 2026-02-20 04:10:39 -08:00
david 66f09c3468 feat(boards): add device detection and text scrolling support 2026-02-19 21:46:33 -08:00
david 4da32466a8 feat: add debug touch drawing function and fix dashboard layout calculations 2026-02-19 17:48:39 -08:00
david dd1c13fbbc refactor: replace hint feedback with debug crosshair 2026-02-19 15:12:02 -08:00
david ec8ec4cd18 refactor(Style): Add font abstraction and CSS-like styling constants 2026-02-19 14:48:25 -08:00
david d6eb2cd561 feat(esp32-s3-lcd-43): add touch test harness and coordinate transformation 2026-02-18 18:58:37 -08:00
david e4609c6978 refactor(Format code): Improve readability and structure 2026-02-18 17:57:54 -08:00
david 9f7a383b38 feat(touch): add press/release detection with touch-down tracking 2026-02-18 13:08:56 -08:00
david 1961631e2c refactor(display): extract tile layout logic to library helper class 2026-02-18 11:43:46 -08:00
david 67613120ad refactor(display): extract dashboard tile grid logic to DisplayManager 2026-02-18 04:28:35 -08:00
david bfba3b02fd feat(doorbell): add staged boot sequence and refactor main loop 2026-02-18 00:35:48 -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 ff073c762b fix(display): correct type cast syntax in pulse calculation 2026-02-17 04:21:05 -08:00
david f39364f67f style(esp32-32e): reformat code and fix display dimensions 2026-02-17 04:10:03 -08:00
david 0ace263324 feat(display): draw hint animation at touch position instead of center 2026-02-17 03:49:34 -08:00
david d61c9c60bf refactor(display): improve touch handling and code formatting 2026-02-17 03:10:52 -08:00
david 2907dac33d refactor(esp32-s3-lcd-43): remove IO expander and use LovyanGFX backlight 2026-02-17 02:13:30 -08:00
david 66b4e75174 refactor(display): split render into screen-specific draw methods 2026-02-17 00:06:30 -08:00
david 9f0e603215 chore(examples): add submodule and remove LVGL examples 2026-02-16 23:09:37 -08:00
david 257bc9aa82 refactor(doorbell): unify 2x2 grid touch logic and add progress bar 2026-02-16 22:11:40 -08:00
david 7085bfff04 refactor(display): update ScreenState field names and remove time display 2026-02-16 20:59:25 -08:00
david 89f3248747 refactor(doorbell): migrate ESP32-S3 to ESP_IOExpander library 2026-02-16 20:51:56 -08:00
david ff197dc889 snapshot 2026-02-16 19:08:47 -08:00
david 838afaa36f consolidate sketches 2026-02-16 19:08:47 -08:00