Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 2.22 KB

cutebot_case01.md

File metadata and controls

71 lines (45 loc) · 2.22 KB

Case 01: Move Forward or Reverse at the Full Speed

Purpose


  • Learn the basic functions of Cutebot move forward or reverse.

Materials


Software Platform


MicroSoft makecode

Programming


Step 1

  • Click the "Advanced" to see more choices in the MakeCode drawer.

  • A codebase is required for Cutebot programming, click “Add Package” at the bottom of the drawer, search Cutebot in the dialogue box and download it.

Note: If you met a tip indicating incompatibility of the codebase, you can continue with the tips or build a new project there.

Step 2

  • Choose "show icon" in the On startbricks.

Step 3

  • Drag go straight at full speed brick into on button A pressed brick.

Step 4

  • Drag ``reverse at full speedbrick intoon button B pressed` brick.

Programming

Links: https://makecode.microbit.org/_c95AfgFdWiPH

You can also download it directly below:

<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;" src="https://makecode.microbit.org/#pub:https://makecode.microbit.org/_c95AfgFdWiPH" frameborder="0" sandbox="allow-popups allow-forms allow-scripts allow-same-origin"> </iframe>

Result


  • After button A being pressed, the car moves forward at its full speed.
  • After button B being presseD, the car reverses at its full speed。

Exploration


How to program the car to stop moving after pressing button A ?

FAQ


Relevant Files