pelikhan / pxt-kitronik-stopbit

Custom blocks for STOP:bit for BBC micro:bit

Home Page:https://pelikhan.github.io/pxt-kitronik-stopbit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pxt-kitronik-stopbit

Kitronik blocks for micro:bit

Blocks that support Kitronik STOP:bit board for the micro:bit.

STOP: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)
})

License

MIT

Supported targets

  • for PXT/microbit
pxt-kitronik-stopbit=github:KitronikLtd/pxt-kitronik-stopbit

About

Custom blocks for STOP:bit for BBC micro:bit

https://pelikhan.github.io/pxt-kitronik-stopbit/

License:MIT License


Languages

Language:TypeScript 98.7%Language:Makefile 1.3%