Skip to content

elecfreaks/pxt-magicwand

Repository files navigation

micro:bit magic wand kit

This is the toy type educational product produced by ELECFREAKS. It can interact with toys purchased in the market and truly complete learning in play.

This library is designed to drive micro:bit magic wand kit , You can get this here: https://www.elecfreaks.com

Get the tutorial here: https://www.elecfreaks.com/learn-en/

Code Example

input.onButtonPressed(Button.A, function () {
    magicWand.setMagicType(magicWand.MagicTypeList.Primary)
})
magicWand.onButtonEvent(magicWand.JoystickBitPin.P2, magicWand.ButtonType.down, function () {
    magicWand.magic()
})
magicWand.setSendPin(AnalogPin.P1)
magicWand.setButtonPin(DigitalPin.P2)
basic.forever(function () {
    if (magicWand.getButton()) {
        magicWand.setMagicType(magicWand.MagicTypeList.Advanced)
    }
})

Supported targets

for PXT/microbit

License

MIT

About

Microbit magic wand, write programs to unleash your magic, by ELECFREAKS Co.,ltd

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages