@@ -50,7 +50,7 @@ also use soon. Using `ztimer_sleep(ZTIMER_SEC, 5);` we simply wait for around
5050But what if we want to do something else while waiting for the timer to expire?
5151Let's take a closer look at how we can use timers in RIOT.
5252
53- ### Step 1 : Creating a Callback
53+ ## Step 2 : Creating a Callback
5454
5555Timers are a way to schedule tasks to be executed at a later time.
5656In RIOT, you have to tell the timers two things:
@@ -76,7 +76,7 @@ and prints the string to the console. Congrats, you have created a callback func
7676now all that is left is to create the timer and schedule it.
7777To do that lets restructure our `main` function to use the timer.
7878
79- ### Step 2 : Scheduling the Timer
79+ ## Step 3 : Scheduling the Timer
8080
8181Go into your `main` function and include the following code:
8282
@@ -102,7 +102,7 @@ This code tells the timer to fire in 3 seconds.
102102The first argument specifies which type of clock we want to use,
103103the second argument is the timer we created, and the third argument is the time in seconds.
104104
105- ### Step 3 : Running the Program
105+ ## Step 4 : Running the Program
106106
107107Now that we have created the timer and scheduled it, we can run the program.
108108Compile the program using `make` and flash it to your board using `make flash`.
0 commit comments