Open jetbrainrobotics opened 3 years ago
@jetbrainrobotics, the SparkIntervalTimer library is based on the PJRC IntervalTimer library written by Daniel Gilbert. I rewrote it to work with the Particle Gen1 & 2 family of products which are/were based on the STM32F103 and STM32F205 MCUs. The library was not written to support any other (ie non-Particle) platform. However, you are welcome to adapt it as you see fit.
If you are writing for the Arduino IDE, I suggest you use Arduino_Core_STM32 which supports hardware timers.
The issue is that I need NewPing library ( for sonars ) which uses SparkIntervalTimer to be working with STM32F4 boards. What I tried ( I used hardware timer library ) throws multiple errors. Any guidance will be appreciated