-MR. LOCKE'S WEBSITE-
  • Grade 6
    • Canva
    • Code.org
    • Culinary Tech
    • Easel
    • Ignition
    • LEGO Education
    • Makey Makey
    • Scratch
  • Grade 7
    • Canva
    • Code.org
    • Culinary Tech
    • Easel
    • Everfi
    • LEGO Spike
    • Photoshop
    • Scratch
    • Tinkercad
    • Video Editing
  • Grade 8
    • Canva
    • Code.org
    • Culinary Tech
    • Easel
    • Everfi
    • LEGO Spike Prime
    • Scratch
    • Sketchup
    • Tinkercad
    • Video Editing

mBot

Picture


​STAGE 3
Lights


Your mBot also has LEDs (Light Emitting Diodes), and you can set them to different colours.

Program your mBot so that pushing the R key changes all of the lights to red, pushing the G key changes all of the lights to green, and pushing the B key changes all of the lights to blue. Also, make all the lights go off whenever the O key is pressed.

You will need to use the block below to accomplish this:
Picture
Extra Challenge (if you're up for it):
See if you can get your mBot to do an impression of a traffic light. When the 'T' key is pressed, the mBot's lights should turn green for 6 seconds, then amber for 3 seconds, and then red for 6 seconds. This pattern should then repeat over and over. You can use the values below to get the amber colour.
Picture

Picture

​Show Mr. Locke that you have successfully completed this stage and then you can move on to the next one.
Next
Picture
Picture
email Mr. Locke
  • Grade 6
    • Canva
    • Code.org
    • Culinary Tech
    • Easel
    • Ignition
    • LEGO Education
    • Makey Makey
    • Scratch
  • Grade 7
    • Canva
    • Code.org
    • Culinary Tech
    • Easel
    • Everfi
    • LEGO Spike
    • Photoshop
    • Scratch
    • Tinkercad
    • Video Editing
  • Grade 8
    • Canva
    • Code.org
    • Culinary Tech
    • Easel
    • Everfi
    • LEGO Spike Prime
    • Scratch
    • Sketchup
    • Tinkercad
    • Video Editing