Skip to content

elecfreaks1/pxt-joystickbit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.)

About

ELECFREAKS MakeCode joystick:bit package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%