...
Include the “log.h” library. We have our own version of printf which allows us to safely print to the console. You can use it the exact same way as printf, just replacing it with LOG_DEBUG, ie:
LOG_DEBUG("Hello World %d\n", my_int);
Include the “delay.h” library. This library allows us to halt the execution of a program for a specified amount of time. Once we have included this library, we can use the function
delay_ms(uint32_t ms_to_delay)
and pass it the number of milliseconds we want to delay for.
Run the program using the scons command from above (with a different project name).This program should run forever in a while true loop.
...