Closed mzy2240 closed 5 years ago
We have provided the Ticker library, which is based on hardware timers. Can it meet your requirements? Here is an example https://github.com/sipeed/Maixduino/blob/master/libraries/Ticker/examples/Blinker/Blinker.ino
Thanks! Looks like it is the one I need. Does it support microsecond interval btw?
I just checked the source code and it seems like the microsecond interval is not supported, do you mind to add that function later? Thank you very much!
Done.
Just test it and it works! Thank you so much!
Do you mind to provide a high level hardware timer? Like the timer for the Teensy board and the zerotimer for the SAMD21/51 board, with callback and interrupt. If a lot of efforts are needed, an example of some work around is greatly appreciated as well. Thanks!