Minimal STM32 TimerInterrupt_Generic PlatformIO / Arduino timer interrupt blink example

***Note:***If you need more flexibility, see Minimal STM32 HardwareTimer PlatformIO / Arduino timer interrupt blink example where we show how to use HardwareTimer instead of TimerInterrupt_Generic. Note that TimerInterrupt_Generic uses HardwareTimer internally.

This is a minimal example of using timer interrupts on PlatformIO / Arduino using the TimerInterrupt_Generic library which runs on the Olimex E407. It will run on almost any STM32 processor but you might need to adjust PC13 to the PIN connected to the LED. The example will blink the LED once per second.

Now add

to your platformio.ini. My full platformio.ini looks like this:

 

 


Check out similar posts by category: PlatformIO, STM32