Search found 2 matches
- Mon Mar 12, 2018 7:41 pm
- Forum: ESP32 Arduino
- Topic: Call a function once a second using the time() library?
- Replies: 2
- Views: 7037
Re: Call a function once a second using the time() library?
It might work - thanks for the response. I'm unable to tell if it's blocking or not. I want to run other code in the foreground of the while loop. I was able to make something work using a hardware timer (https://github.com/dwaq/Super7Seg/blob/master/Firmware-ESP32/Firmware-ESP32.ino#L31-L43), but i...
- Sat Mar 03, 2018 8:36 pm
- Forum: ESP32 Arduino
- Topic: Call a function once a second using the time() library?
- Replies: 2
- Views: 7037
Call a function once a second using the time() library?
My code is heavily based on this example of receiving the time from the internet: https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino I'd like to call a function whenever the second increments. I'm using time(NULL) to get the time and it's c...