Page 75 - Ai Robogenius
P. 75
STEP - 5 Click on Make a Variable button from the Variables category to
create a variable and name it heading. This variable will store the
compass value (angle).
STEP - 6 Drag the set heading to 0 block from the Variable category and place
it into the forever block.
STEP - 7 Drag the compass heading block from the Input category and place it
into the set heading to 0 block.
Sensors in Micro:Bit
73

