Approved content
The content below is provided by a partner.
This ELECFREAKS joytick:bit Package was developed by ELECFREAKS with minor assistance from Tinkercademy.
joystickbit.onButtonEvent(joystickbit.JoystickBitPin.P12, joystickbit.ButtonType.down, function () {
basic.showString("C")
})
joystickbit.onButtonEvent(joystickbit.JoystickBitPin.P15, joystickbit.ButtonType.down, function () {
basic.showString("F")
})
joystickbit.onButtonEvent(joystickbit.JoystickBitPin.P13, joystickbit.ButtonType.down, function () {
basic.showString("D")
})
joystickbit.onButtonEvent(joystickbit.JoystickBitPin.P14, joystickbit.ButtonType.down, function () {
basic.showString("E")
})
joystickbit.initJoystickBit()
joystickbit.Vibration_Motor(100)
basic.forever(function () {
})
MIT
for PXT/microbit (The metadata above is needed for package search.)
joystickbit=github:tinkertanker/pxt-joystickbit#v1.0.4