Commit Graph

27 Commits

Author SHA1 Message Date
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
ff073c762b fix(display): correct type cast syntax in pulse calculation 2026-02-17 04:21:05 -08:00
8e9bd18676 style: apply consistent code formatting and spacing 2026-02-17 04:15:48 -08:00
f39364f67f style(esp32-32e): reformat code and fix display dimensions 2026-02-17 04:10:03 -08:00
0ace263324 feat(display): draw hint animation at touch position instead of center 2026-02-17 03:49:34 -08:00
23712a152b style: fix indentation and formatting in doorbell code 2026-02-17 03:19:12 -08:00
d61c9c60bf refactor(display): improve touch handling and code formatting 2026-02-17 03:10:52 -08:00
2907dac33d refactor(esp32-s3-lcd-43): remove IO expander and use LovyanGFX backlight 2026-02-17 02:13:30 -08:00
246bfe0cb9 fix(doorbell-touch): correct LovyanGFX library integration and build 2026-02-17 01:13:28 -08:00
de45f89f9b refactor(doorbell-touch): simplify LovyanGFX library setup 2026-02-17 01:00:57 -08:00
66b4e75174 refactor(display): split render into screen-specific draw methods 2026-02-17 00:06:30 -08:00
9f0e603215 chore(examples): add submodule and remove LVGL examples 2026-02-16 23:09:37 -08:00
257bc9aa82 refactor(doorbell): unify 2x2 grid touch logic and add progress bar 2026-02-16 22:11:40 -08:00
b47993b29a refactor(doorbell-touch): remove entire sketch for rebuild 2026-02-16 21:13:31 -08:00
7085bfff04 refactor(display): update ScreenState field names and remove time display 2026-02-16 20:59:25 -08:00
89f3248747 refactor(doorbell): migrate ESP32-S3 to ESP_IOExpander library 2026-02-16 20:51:56 -08:00
c7ea8d5817 chore(mise): update PSRAM config and commit task command 2026-02-16 19:15:48 -08:00
ff197dc889 snapshot 2026-02-16 19:08:47 -08:00
838afaa36f consolidate sketches 2026-02-16 19:08:47 -08:00
75c3f5706b snapshot 2026-02-16 19:05:13 -08:00
dc62265fbb snapshot 2026-02-16 19:05:13 -08:00
fa6bf6fd6a snapshot 2026-02-16 19:05:13 -08:00
ce413dc20c snapshot 2026-02-16 19:05:13 -08:00
6c4cfd3a45 networking broken 2026-02-16 19:05:13 -08:00
86b94e3781 snapshot 2026-02-16 19:05:13 -08:00
da2a077343 snapshot 2026-02-16 19:05:13 -08:00
6b2921aa30 snapshot 2026-02-16 19:05:12 -08:00