![arduino wire library multiple bytes arduino wire library multiple bytes](https://download.mikroe.com/documents/compilers/mikroc/pic32/help/img/Schemes/scheme_rs485.gif)
Purpose : IRQ Handler called when watchdog IRQ occursĬomments: once fired this interrupt disable the watchdog Purpose : IRQ Handler called when switch is pressed/released (for wake) Inc counter and set flag for main loop
![arduino wire library multiple bytes arduino wire library multiple bytes](https://electropeak.com/learn/wp-content/uploads/2021/08/Multiple-I2C-Program1-768x444.jpg)
Purpose : IRQ Handler called when external device wake usĬomments: once fired this interrupt disable itself Takr care of to duty cycle limitations). Note that push button help me to do different actions depending on how much time I press it // Schedule TX every this many seconds (multiple of 8 due to watchdog). the 38 wake, I’m powering sensors, do measure, send packet and going to sleep againįor those asked here a skeleton of my code, I removed lot of debug and sensor management, but you’ve got the main concept. In fact, the Watchdog wake me 37 times on which I’m going back to sleep immediately. Sending a packet every 5 min (approx), so I don’t think I’m violating the duty cyle.