Commit Graph

61 Commits

Author SHA1 Message Date
348612d9cd refactor: abstract hardware in DisplayManager
- TFT_eSPI -> Gfx typedef (zero-cost on E32R35T)
- Touch reads wrapped in #if USE_TOUCH_XPT2046 / USE_TOUCH_GT911
- Hardcoded rotation -> DISPLAY_ROTATION from BoardConfig
- All 480/320 literals -> SCREEN_WIDTH / SCREEN_HEIGHT
- Boot splash shows BOARD_NAME for target identification
- Added holdProgress() convenience method using HOLD_DURATION_MS
2026-02-16 19:05:13 -08:00
d0ab4a8da7 refactor: parameterize Dashboard for multi-target
- TFT_eSPI / TFT_eSprite -> Gfx / GfxSprite typedefs
- Hard-coded 480x320 -> SCREEN_WIDTH / SCREEN_HEIGHT from BoardConfig
- Top bar, WiFi bars, time position all scale to any resolution
- Zero behavioral change on E32R35T (Gfx = TFT_eSPI typedef)
2026-02-16 19:05:13 -08:00
259a26e79e feat: add touch driver abstraction layer
XPT2046 path: no change — uses TFT_eSPI built-in getTouch().
GT911 path:   TouchDriver namespace with begin()/read() stub.

TouchDriverGT911.cpp compiles to nothing on TFT_eSPI targets.
Uncomment TAMC_GT911 lines to enable real capacitive touch.
2026-02-16 19:05:13 -08:00
50f7b5c390 feat: add display driver abstraction layer
Gfx / GfxSprite types:
  - TFT_eSPI path: zero-cost typedefs to TFT_eSPI / TFT_eSprite
  - Arduino_GFX path: adapter classes with TFT_eSPI-compatible API

DisplayDriverGFX.cpp compiles to nothing on TFT_eSPI targets.
GfxSprite on Arduino_GFX uses direct-draw (no offscreen buffer yet).
2026-02-16 19:05:13 -08:00
1b87815011 feat: add board configuration system, refactor Config.h
Board selection driven by -DTARGET_E32R35T or -DTARGET_WAVESHARE_S3_43.
Defaults to E32R35T for backward compatibility.

All hardware pin definitions moved from Config.h to board headers.
SCREEN_WIDTH/SCREEN_HEIGHT now come from board headers.
Config.h is now purely application-level configuration.

New files:
  BoardConfig.h              — board selector
  boards/board_e32r35t.h     — E32R35T pins, display, touch config
  boards/board_waveshare_s3.h — Waveshare S3 4.3" pins, display, touch config

Modified:
  Config.h — removed hardware pins section, added #include BoardConfig.h,
             added HOLD_DURATION_MS to timing section
2026-02-16 19:05:13 -08:00
5313222f4f snapshot 2026-02-16 19:05:13 -08:00
7763aadf51 snapshot 2026-02-16 19:05:13 -08:00
d3f5a4e3e3 snapshot 2026-02-16 19:05:13 -08:00
850275ee03 snapshot 2026-02-16 19:05:13 -08:00
3e62c7d481 implement dashboard on wake 2026-02-16 19:05:13 -08:00
e24d19eb94 snapshot 2026-02-16 19:05:13 -08:00
cc081ebc1a snapshot 2026-02-16 19:05:13 -08:00
24f69e8589 snapshot 2026-02-16 19:05:13 -08:00
83002ff8b2 snapshot 2026-02-16 19:05:13 -08:00
e16d7b62f6 snapshot 2026-02-16 19:05:13 -08:00
030dbe86d3 snapshot 2026-02-16 19:05:13 -08:00
3ca9465075 snapshot 2026-02-16 19:05:13 -08:00
9b9fb6dfb2 snapshot 2026-02-16 19:05:13 -08:00
5b09c14d42 snapshot 2026-02-16 19:05:13 -08:00
f4045cdb98 snapshot 2026-02-16 19:05:13 -08:00
fadcb684cc snapshot 2026-02-16 19:05:13 -08:00
b3f1f0e805 add tft fork to doorbell sketch 2026-02-16 19:05:13 -08:00
3e4effd509 snapshot 2026-02-16 19:05:13 -08:00
dc1a8f9768 snapshot 2026-02-16 19:05:13 -08:00
6823b0ac21 snapshot 2026-02-16 19:05:13 -08:00
09252ca585 networking broken 2026-02-16 19:05:13 -08:00
8be4ed3fa5 snapshot 2026-02-16 19:05:13 -08:00
b81c93ad94 snapshot 2026-02-16 19:05:13 -08:00
329690abcf snapshot 2026-02-16 19:05:12 -08:00
fbc02af589 snapshot 2026-02-16 19:05:12 -08:00
df0527b123 snapshot 2026-02-16 19:05:12 -08:00
f9c726626c snapshot 2026-02-16 19:05:12 -08:00
160c686933 snapshot 2026-02-16 19:05:12 -08:00
13812abc00 snapshot 2026-02-16 19:05:12 -08:00
a2f2eb7442 snapshot 2026-02-16 19:05:11 -08:00
8bdbf227ca snapshot 2026-02-16 19:05:11 -08:00
77f8236347 snapshot 2026-02-16 19:05:10 -08:00
049fe7f28d snapshot 2026-02-16 19:05:10 -08:00
cd9c63fed4 snapshot 2026-02-16 19:05:10 -08:00
54298dbd54 snapshot 2026-02-16 19:05:10 -08:00
b8f6fd80f8 snapshot 2026-02-16 19:05:10 -08:00
2e55791fdc snapshot 2026-02-16 19:05:10 -08:00
b738d9fec1 snapshot 2026-02-16 19:05:10 -08:00
63db67b9b1 snapshot 2026-02-16 19:05:10 -08:00
0e7641c261 snapshot 2026-02-16 19:05:10 -08:00
23048dc48f snapshot 2026-02-16 19:05:10 -08:00
66b9865a6f snapshot 2026-02-16 19:05:10 -08:00
787c639e90 snapshot 2026-02-16 19:05:10 -08:00
6efa0f382f snapshot 2026-02-16 19:05:10 -08:00
f22fe65f81 snapshot 2026-02-16 19:05:10 -08:00