Unit#2-11

Learning Outcome

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

  • understand how to make the Micro:Bit loop over a 3-bit and 4-bit binary number

Review

  • go over 1-bit number
  • loops

Lesson

  • you will now have 4 different states on 2 different pins to take care of
    • you can no long just use A button pressed or not
    • you will need to use a loop

Activity

  • go over a 2, 1-bit number using a loop (see below)

Daily Assignment

  • continue the process that we will do for our final project
    • 2, 1-bit numbers (like below)
    • 2, 2-bit numbers
    • 2, 3-bit numbers
    • 2, 4-bit numbers

Extra

  • can you figure out what to do for 2s compliment?
    • form -8 to +7 for example for a 4-bit number