robot obstacle distance
How far away the nearest thing in front is, in centimetres (up to 40; 40 means nothing in range). Read it again in forever to follow it.
robot.obstacleDistance()
AI robots · Find each block in the MakeCode toolbox (the category is at the end of each line).
How far away the nearest thing in front is, in centimetres (up to 40; 40 means nothing in range). Read it again in forever to follow it.
robot.obstacleDistance()
A variable can hold true or false, to remember what is happening now. Logic.
waiting = true
Shows a number; numbers above 9 scroll. Basic › show number.
basic.showNumber(0)
Waits before the next block. 1000 ms is one second. Basic › pause.
basic.pause(500)
Sends a name and a number by radio, such as bin and 1. Radio.
radio.sendValue("bin", 1)