Additional sensors and actuators can be add as Jacdac modules. MicroCode automatically detect additional hardware and will show the additional tiles if supported.
The railroad crossing sample shows a program using a servo and a LED ring Jacdac module.
The
servo
uses a servo motor move to move an physical arm. The
servo
arm orientation is mapped to the wall clock hours: 0
(or 12
) is on rotated 90 degree from the resting position to the left, 6
is rotated 90 degree right from the rest position.
There is also a secret animation mode when you press the micro:bit logo button.
- when
press
button A, do
servo set arm to 1 o'clock.
The
LED
uses a programmable LED ring module to display blue and red colors.
- when
press
button A, do
LED set all color to
red, black and repeat.