<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Timers on BatSTEM Academy</title><link>https://docs.batstem.com/en/categories/timers/</link><description>Recent content in Timers on BatSTEM Academy</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 02 Apr 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://docs.batstem.com/en/categories/timers/index.xml" rel="self" type="application/rss+xml"/><item><title>L9: The timer</title><link>https://docs.batstem.com/en/docs/l9-the-timer/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://docs.batstem.com/en/docs/l9-the-timer/</guid><description>&lt;h1 id="the-timer">The timer&lt;a class="td-heading-self-link" href="#the-timer" aria-label="Heading self-link">&lt;/a>&lt;/h1>
&lt;h2 id="what-you-will-learn-in-this-lesson">What you will learn in this lesson&lt;a class="td-heading-self-link" href="#what-you-will-learn-in-this-lesson" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>In this lesson, we will cover:&lt;/p>
&lt;ul>
&lt;li>What a timer is.&lt;/li>
&lt;li>The difference between waiting in the main loop and using a periodic event.&lt;/li>
&lt;li>Executing blocks at regular intervals.&lt;/li>
&lt;li>Enabling and disabling a timer.&lt;/li>
&lt;li>Using variables to remember the state between one timer event and the next.&lt;/li>
&lt;/ul>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>To follow this lesson, you should have completed &lt;a href="../l1-internal-led/">&lt;em>Lesson 1: My first project&lt;/em>&lt;/a>, &lt;a href="../l3-the-led-diode-2/">&lt;em>Lesson 3: The LED diode (2)&lt;/em>&lt;/a>, &lt;a href="../l6-the-serial-port/">&lt;em>Lesson 6: The serial port&lt;/em>&lt;/a> and &lt;a href="../l8-the-pushbutton-2/">&lt;em>Lesson 8: The pushbutton (2)&lt;/em>&lt;/a>.&lt;/p></description></item></channel></rss>