Skip to content
Snippets Groups Projects
Commit 9ffc4105 authored by NDC's avatar NDC
Browse files

draft blink code for const / define param

parent 5bc0b424
No related branches found
No related tags found
No related merge requests found
Pipeline #437196 passed
......@@ -158,6 +158,27 @@
<p> This improves code clarity and allows for easier modifications in the future.</p>
</section>
<section data-auto-animate>
<h2 data-id="code-title">With Animations</h2>
<pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers="|12,14"><script type="text/template">
// the setup function runs once when you press reset or power the board
void setup()
{
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop()
{
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(5000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(2000); // wait for a second
}
</script></code></pre>
</section>
<section>
<h3>Use Classes</h3>
<p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment