Approved content

The content below is provided by a partner.

tinkertanker/pxt-joystickbit 1.0.4 GitHub

joytick:bit Package

This ELECFREAKS joytick:bit Package was developed by ELECFREAKS with minor assistance from Tinkercademy.

joytick:bit introduction

Code Example

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 () {

})


License

MIT

Supported targets

for PXT/microbit (The metadata above is needed for package search.)

joystickbit=github:tinkertanker/pxt-joystickbit#v1.0.4