Skip to content

Latest commit

 

History

History
 
 

Lesson-2-3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Lesson 2: Make built-in LED blink

Purpose: Learn about order of operations and program setup in Arduino. It's a giant loop.

  • Variables (outside of setup for scope reasons. Why not in loop? Because it will reset it every time.)
  • Setup (all the code that happens once at the start)
  • Loop
  • Variables (ref: https://www.arduino.cc/en/Reference/VariableDeclaration)
    • Variable Scope
    • Declare and Initialize variables
    • Order of operations (elaborate on this more, not just variables, the whole patch is order of operations)
      • declare (int x)
      • Initialize when assigning a value (x = 1)
      • Can do all in one step: int x = 1

Lesson 3: Make external LED blink

external led

Purpose: Introduce concepts of basic electronics

  • Breadboard
  • Jumper cables
  • 10kΩ resistor
  • 3v LED