esp32:watchdog
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| esp32:watchdog [2022/04/25 20:10] – aistis | esp32:watchdog [2022/04/25 20:10] (current) – aistis | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| + | //setup | ||
| timer = timerBegin(0, | timer = timerBegin(0, | ||
| timerAttachInterrupt(timer, | timerAttachInterrupt(timer, | ||
| Line 18: | Line 18: | ||
| | | ||
| | | ||
| + | // | ||
| timerWrite(timer, | timerWrite(timer, | ||
| - | < | + | </code> |
| - | |||
| - | <code cpp> | ||
| - | #include < | ||
| - | |||
| - | void setup() { | ||
| - | Serial.begin(115200); | ||
| - | pinMode(16, OUTPUT); | ||
| - | } | ||
| - | |||
| - | void loop() { | ||
| - | static int zzz = 0; | ||
| - | Serial.println(zzz++); | ||
| - | |||
| - | digitalWrite(16, | ||
| - | delay(1000); | ||
| - | digitalWrite(16, | ||
| - | delay(1000); | ||
| - | } | ||
| - | </ | ||
esp32/watchdog.1650906623.txt.gz · Last modified: by aistis
