Write Programs with App Inventor
|Make the robot move forward at a certain speed (number of 0-255)|
|Make the robot move backward at a certain speed (number of 0-255)|
|Make the robot turn left at a certain speed (number of 0-255)|
|Make the robot turn right at a certain speed (number of 0-255)|
|set the speed of both motors (0-255) of the connected mBot. This is for advanced control|
|Make the mBot stop moving|
|light up the mBot’s on-board RGD LEDs with a certain color.
“whichLight” field accept a number: (0: both lights, 1: right light, 2- left light).
|Play a musical note using the internal buzzer of mBot.
duration is in milliseconds, and frequency is for the pitch.
|read the value of the lightness sensor.|
|read the value of the ultrasonic sensor. Usually connected to port 3.|
|read the value of the temperature sensor (in Celsius degrees).|
|read the value of the humidity sensor (in percentage).|
|get a list of available mBot robots. Used in Bluetooth connection|
|connect to a mBot with the certain address,
usually an item from the “availableRobots” list.