In this Arduino live-coding series you will learn how to program your own dice roller project! We'll write the code together, from scratch, solving interesting challenges, and I will explain every step and show you how to create clean, readable Arduino code.
Part 1: • Programming Arduino Dice Roller from Scrat...
Part 2: • Programming Arduino Dice Roller: 44 ⇒ 7 Li...
Part 3: • Programming Arduino Dice Roller: Making ra...
Timeline:
00:00 Start
00:30 Explaining the circuit
01:35 The Dice Pip pattern
02:09 Starting to write the code
03:33 Adding all the red LEDs
04:30 Creating the displayNumber() function
06:15 Why we need `break` in switch?
07:16 Adding numbers 3, 4, 5, and 6
08:31 Testing our implementation
08:57 Hooray! Great success ;-)
The code + simulation from the tutorial:
https://wokwi.com/projects/3286757250...