Click“JavaScript"to view the corresponding JavaScript code:
(5)Test Results:
Download code to micro:bit and dial POWER to ON end, line tacking car
goes forward along black line .
Note: turn on the switch at the back of micro:bit car.
the width of black line should be larger than the width of line tracking
sensor.
Avoid to test smart car under the strong light.