Skip to main content

Video Tutorials

Prefer watching to reading? Each tutorial below pairs a video with the exact code used on screen. Pause, type along in the browser REPL, and check your output against the transcript.

Learning path​

#VideoDurationLevelYou will learn
V1Hello, HIL5 minBeginnerInstalling the CLI, running the REPL, evaluating (+) expressions.
V2Operators & variables8 minBeginnerArithmetic, comparison/logical operators, (SET ...), hex literals like 0xFF.
V3Control flow12 minBeginner+(IF ...), (FOR i 0 10 ...) (stop value exclusive), (WHILE ...), loop limits.
V4Blink an LED12 minIntermediate(PINMODE ...), (DIGITALWRITE ...), transpiling to Arduino C with hil-cli build.
V5Temperature logger15 minAdvancedReading sensors via (READ A 0), state machines, serial logging.
V6MQTT + dashboard18 minAdvancedPublishing telemetry over MQTT and watching it live on the network Dashboard.

Embedding a video card​

The tutorials section of the site uses a reusable card + modal player component (site/components/video-card.html). A card is plain HTML:

<div class="video-card" data-video="https://www.youtube.com/embed/VIDEO_ID">
<div class="video-thumb" style="background-image:url('/images/tutorials/v1-thumb.webp')">
<button class="play-btn" aria-label="Play">&#9654;</button>
<span class="video-duration">5:12</span>
</div>
<h3>Hello, HIL</h3>
<p>Install the CLI, open the REPL, evaluate your first expressions.</p>
</div>

Clicking a card opens the modal player; watch progress is stored in localStorage so partially-watched videos resume where you left off.

Code-along: episode V4​

The complete script typed in Blink an LED:

; blink.hil — the HIL "hello world"
(SETUP
(PINMODE 13 OUTPUT))

(LOOP
(DIGITALWRITE 13 HIGH)
(DELAY 500)
(DIGITALWRITE 13 LOW)
(DELAY 500))

Build and flash it exactly as shown at 07:40:

hil-cli build blink.hil -o blink.ino # transpile to Arduino C
hil-cli upload blink.ino --board uno # flash via avrdude

Expected serial output (shown on screen at 09:05):

{"type":"ready","msg":"Connected on /dev/ttyUSB0"}
[LOG] LED ON
[LOG] LED OFF
[LOG] LED ON
...

Where to get help​

  • Stuck mid-video? Ask in the #help chat room on the Community page.
  • Found an error in an episode? Open an issue with the timestamp and code block.
  • Finished the path? Post your project with #showcase — the best builds are featured on the home page.

References​

  1. Mayer, R. E. (2020). Multimedia learning (3rd ed.). Cambridge University Press. https://doi.org/10.1017/9781316941355
  2. Sweller, J., van Merriënboer, J. J. G., & Paas, F. (2019). Cognitive architecture and instructional design: 20 years later. Educational Psychology Review, 31(2), 261–292. https://doi.org/10.1007/s10648-019-09465-5