interrupt works

This commit is contained in:
akdeb 2026-03-05 23:47:50 +05:30
parent 6456944767
commit aa5d0f7403
2 changed files with 5 additions and 12 deletions

View file

@ -19,13 +19,6 @@
</a> </a>
<br /> <br />
<!-- <div style="display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; justify-content:center;">
<a style="display:inline-flex;" href="https://elatoai.com/home"><img src="assets/try.png" height="42" style="width: auto;"></a>
<a style="display:inline-flex;" href="https://www.kickstarter.com/projects/elatoai/elato-make-toys-talk-with-ai-voices"><img src="assets/ks.png" height="42" style="width: auto;"></a>
<a style="display:inline-flex;" href="https://www.elatoai.com/products/ai-devkit"><img src="assets/diy.png" height="42" style="width: auto;"></a>
</div> -->
</div> </div>
@ -181,7 +174,7 @@ graph TD
## 🙌 Contributing ## 🙌 Contributing
We value your contributions! Here are some ideas: We value your contributions! Here are some ideas:
1. Speech Interruption on ESP32 1. Speech Interruption on ESP32 (works with OpenAI)
2. ~~Adding Arduino IDE support~~ 2. ~~Adding Arduino IDE support~~
3. ~~Add Hume API client for emotion detection~~ 3. ~~Add Hume API client for emotion detection~~
4. Add MCP support on Deno Edge 4. Add MCP support on Deno Edge

View file

@ -12,8 +12,8 @@ const int RED_LED_PIN = 9;
const int GREEN_LED_PIN = 8; const int GREEN_LED_PIN = 8;
// ====== Schedule ====== // ====== Schedule ======
static const int TARGET_HOUR = 11; // 11:15 local time static const int TARGET_HOUR = 00; // 11:15 local time
static const int TARGET_MINUTE = 52; static const int TARGET_MINUTE = 10;
// Blink settings // Blink settings
static const uint32_t BLINK_DURATION_MS = 30 * 1000; // blink for 30 seconds static const uint32_t BLINK_DURATION_MS = 30 * 1000; // blink for 30 seconds
@ -144,9 +144,9 @@ void setup() {
// Otherwise sleep until next 11:15. // Otherwise sleep until next 11:15.
uint64_t secs = secondsUntilNextTarget(); uint64_t secs = secondsUntilNextTarget();
// If it's within ~90 seconds of 11:15, do the blink routine now. // If it's within ~60 seconds of 11:15, do the blink routine now.
// (This helps if wake happened a bit late/early.) // (This helps if wake happened a bit late/early.)
if (secs > (24ULL * 3600ULL - 90ULL) || secs < 90ULL) { if (secs > (24ULL * 3600ULL - 60ULL) || secs < 60ULL) {
Serial.println("At/near target time. Blinking now."); Serial.println("At/near target time. Blinking now.");
blinkRgbThenSleep(); blinkRgbThenSleep();
} else { } else {