Upgraded firmware for Simone Giertz's Every Day Calendar that links an ATProto-powered ESP32, for sync with goals.garden 🌱
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix brightness buttons triggering fireworks animation

Brightness buttons (moon/sun) were falling through to the calendar
touch logic, causing LED toggles and burst animations at positions
(4,31) and (6,31). Now returns early after handling brightness
adjustment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+5 -2
+5 -2
firmware/sketches/EverydayCalendar/EverydayCalendar.ino
··· 141 141 // Handle a button press 142 142 if(touch) 143 143 { 144 - // Brightness Buttons 145 - if(cal_touch.y == 31){ 144 + // Brightness Buttons - handle separately and skip calendar logic 145 + if(cal_touch.y == 31 && (cal_touch.x == 4 || cal_touch.x == 6)){ 146 146 if(cal_touch.x == 4){ 147 147 brightness = 0; 148 148 }else if(cal_touch.x == 6){ ··· 152 152 Serial.print("Brightness: "); 153 153 Serial.println(brightness); 154 154 cal_lights.setBrightness((uint8_t)brightness); 155 + previouslyHeldButton.x = cal_touch.x; 156 + previouslyHeldButton.y = cal_touch.y; 157 + return; // Don't process as calendar button 155 158 } 156 159 // If all buttons aren't touched, reset debounce touch counter 157 160 if(previouslyHeldButton.x == -1){