Commit Graph

81 Commits

Author SHA1 Message Date
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
4f9c407d9c snapshot 2026-02-16 19:05:10 -08:00
147c130360 snapshot 2026-02-16 19:05:10 -08:00
b4696a09e7 snapshot 2026-02-16 19:05:10 -08:00
792da02d70 snapshot 2026-02-16 19:05:10 -08:00
3e802c42a2 snapshot 2026-02-16 19:05:10 -08:00
3b6190840f snapshot 2026-02-16 19:05:10 -08:00
9fa00dfd11 test ST7789 display
1. **Display Driver Upgrade**
   - Replaced simple backlight control with full **Arduino_GFX library** integration
   - Configured ST7789 display controller (172x320, with 34px column offset)
   - Added SPI bus setup for display communication

2. **Visual Feedback Enhancement**
   - Transitioned from binary backlight (ON/OFF) to **full-color screen displays**:
     - **Silent state**: Black screen
     - **Alarm state**: Red/White blinking
     - **Button press**: White screen
     - **Silence confirmed**: Green screen with text
   - Added colored status messages (WiFi errors, silence confirmations)

3. **Display Test Function**
   - New `testDisplay()` cycles through RED → GREEN → BLUE → WHITE → BLACK on startup
   - Verifies display hardware functionality

- **Better user feedback**: Color-coded states and text messages replace simple backlight blinking
- **Easier troubleshooting**: Startup test validates display, WiFi errors shown visually with text
- **Enhanced alarm**: Alternating red/white screens more noticeable than simple blinking
- **Hardware utilization**: Fully leverages the 1.47" color LCD instead of treating it as a simple backlight
2026-02-16 19:03:32 -08:00
e9678dd1ea snapshot 2026-02-16 19:03:21 -08:00
b5c81d79f0 RGB LED Migration
1. **Hardware switch**: Replaced backlight PWM control (GPIO 22) with WS2812B RGB LED (GPIO 8)
   - Removed analog brightness levels (0-255)
   - Added bit-bang WS2812B protocol implementation (`setRGB()`)
   - Defined color palette: RED, GREEN, BLUE, WHITE, OFF

2. **Visual feedback improvements**:
   - **Silent state**: LED OFF (was dim backlight)
   - **Alarm state**: Blinks RED/WHITE (was full brightness on/off)
   - **Button press**: Shows WHITE while held (was full brightness)
   - **Confirmations**: Green flash for SILENCE commands (was dim flash)

3. **Bug fixes**:
   - Added edge detection for button to prevent repeated triggers
   - Added explicit LED OFF commands throughout setup to prevent lingering states
   - Button release now properly resets ALARM → SILENT

4. **Code cleanup**: Removed section divider comments, condensed enum/constant declarations

5. **Tooling**: Added `mise.toml` task for monitor-only (`mon`)

- **More visible alerts**: RGB colors provide clearer state indication than brightness levels
- **Better reliability**: Explicit state management prevents LED staying on unintentionally
- **Improved UX**: Button can now manually cancel alarms with visual confirmation
2026-02-16 18:26:22 -08:00
f68d820e8b works with just blinking backlight for now 2026-02-12 01:07:57 -08:00
5f168f370b initial commit 2026-02-12 00:45:31 -08:00