Commit Graph

25 Commits

Author SHA1 Message Date
d1fa0e20b1 refactor(display): extract dashboard tile grid logic to DisplayManager 2026-02-18 04:28:35 -08:00
deda456d35 refactor(doorbell-touch): add build harness with monitor agent and board-specific setup 2026-02-18 03:28:38 -08:00
999e0b7e60 refactor(doorbell-touch): extract board configs and improve logging 2026-02-18 02:02:35 -08:00
cd74b501db feat(doorbell): add staged boot sequence and refactor main loop 2026-02-18 00:35:48 -08:00
6cff6d4bf4 refactor(touch): centralize touch handling in DoorbellLogic 2026-02-17 23:35:59 -08:00
c9232ee477 feat(touch): add continuous touch polling and debug logging 2026-02-17 23:20:42 -08:00
bc47200e38 fix(doorbell-touch): add touch debug logging and missing TFT_MISO pin 2026-02-17 22:51:32 -08:00
3d4eb21a88 feat(boards): add ESP32-32E-4 (4" ST7796) board support 2026-02-17 22:07:51 -08:00
8c92487a47 refactor: add active parameter to updateHint method signature
1. **Method Signature Update**: Added `bool active` parameter to `updateHint()` method across the display driver hierarchy:
   - `DisplayManager::updateHint(x, y, active)` - delegates to driver
   - `DisplayDriverTFT::updateHint(x, y, active)` - override implementation
   - `DisplayDriverGFX::updateHint(x, y, active)` - override implementation

2. **Code Formatting**: `DisplayManager.h` reformatted (whitespace/comment style changes only)

- **Breaking Change**: All existing `updateHint(x, y)` calls will fail to compile until updated to include the `active` parameter
- **Enhanced Control**: Callers can now explicitly show/hide touch hints rather than just updating position, enabling better touch feedback UX (e.g., hide hint on touch release)
- **API Consistency**: All implementations in the driver hierarchy now enforce the same signature
2026-02-17 05:23:43 -08:00
4414185891 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
db668f27dd fix(display): correct type cast syntax in pulse calculation 2026-02-17 04:21:05 -08:00
3b0c9c98b7 style: apply consistent code formatting and spacing 2026-02-17 04:15:48 -08:00
4d66bded22 style(esp32-32e): reformat code and fix display dimensions 2026-02-17 04:10:03 -08:00
853bb38c46 feat(display): draw hint animation at touch position instead of center 2026-02-17 03:49:34 -08:00
5ebbf0177a style: fix indentation and formatting in doorbell code 2026-02-17 03:19:12 -08:00
4876fb29b7 refactor(display): improve touch handling and code formatting 2026-02-17 03:10:52 -08:00
40c0a0a97e refactor(esp32-s3-lcd-43): remove IO expander and use LovyanGFX backlight 2026-02-17 02:13:30 -08:00
dcc710e9b3 refactor(display): split render into screen-specific draw methods 2026-02-17 00:06:30 -08:00
e3c78e266b chore(examples): add submodule and remove LVGL examples 2026-02-16 23:09:37 -08:00
30f2117e30 refactor(doorbell): unify 2x2 grid touch logic and add progress bar 2026-02-16 22:11:40 -08:00
9734796d57 refactor(doorbell-touch): remove entire sketch for rebuild 2026-02-16 21:13:31 -08:00
f1fb3fb81c refactor(display): update ScreenState field names and remove time display 2026-02-16 20:59:25 -08:00
063087d9f5 refactor(doorbell): migrate ESP32-S3 to ESP_IOExpander library 2026-02-16 20:51:56 -08:00
7740d2fd76 snapshot 2026-02-16 19:08:47 -08:00
05f6a7edf6 consolidate sketches 2026-02-16 19:08:47 -08:00