Login

Please fill in your details to login.





micro:bit - keep right, straight on or left

This page is mainly about micro:bit - keep right, straight on or left
BL / PY : Embedded computer systems are used to control traffic signals. Produce a continuous animation which shows a south east arrow for 1s followed by a clear display for 0.5s - "Keep right!"
BL / PY : Now change your script so that the default behaviour is to keep straight on (north arrow) but if you press button A, it shows keep left (south west arrow) or if you press button B, it shows keep right (south east arrow). Both buttons would set the display back to 'keep straight on'. NOTE : The micropython version of this must use the button.is_pressed() method which doesn't behave as nicely in this situation as the block version 😦

Last modified: August 3rd, 2022
The Computing Café works best in landscape mode.
Rotate your device.
Dismiss Warning