Blocks that support Kitronik STOP:bit board for the micro:bit.
- set traffic light state to Stop or other required state
input.onButtonPressed(Button.A, () => {
Kitronik_STOPbit.trafficLightState(Kitronik_STOPbit.LightStates.Stop)
})
- turn on and off individual colour LEDs
input.onButtonPressed(Button.B, () => {
Kitronik_STOPbit.trafficLightLED(Kitronik_STOPbit.LightColours.Red, Kitronik_STOPbit.DisplayLights.Off)
})
MIT
- for PXT/microbit
pxt-kitronik-stopbit=github:KitronikLtd/pxt-kitronik-stopbit