can someone give me an example to callback timer for the Arduino IDE of ESP8266 ?
I tried the following one, but I'm not a C++ expert:
#include Ticker.h
void callback_set(void)
{
digitalWrite(0, 0);
}
void set_timer(void) {
Ticker tick;
tick.once_ms(1000, &callback_set);
}
set_timer();
The goal is to set GPIO 0 after 1 second.
Thanks
KurtB