Unit #2-05

Learning Outcome

At the end of this lesson, you will be able to:

  • place code on an actual Micro:Bit

Review

  • a variable is just a place to store information, that can change, hence the name
    • we use them in math all the time
    • in programming, we do not use a single letter to represent a variable, we use a word( or several words) to describe it
      • ex: counter, numberOfStudents, totalCost, ...
    • notice how we spell variable names

Lesson

  • how to load a program onto a Micro:Bit
    • if something goes wrong how to "re-image" the Micro:Bit
  • review how to use the circuit board power supply, breadboard and breakout board

Activity

  • nil

Daily Assignment

  • place the previous programs that you wrote in the simulator onto the Micro:Bit:
    • Hello, World! -> Unit #2-01
    • Adding 1 and 5 using buttons -> Unit #2-02
    • Convert 3 bit Binary number to decimal -> Unit #2-03
    • Dice roll game -> Unit #2-04
  • take a picture of the programs running on the actual hardware

Extra

  • if you finish early:
    • make a program in Micro-Python and not a Block language
    • get sound working with your speaker