Open this page at https://schizoakustik.github.io/microboy/
micro:boy is basically a micro:bit with a 2-axis pot and a speaker added to make a handheld game console. This extension is to ease the handling of the joystick when creating games for the micro:boy.
Return analog value on x or y axis.
Center is 594. Full left and up is 1023, right and down is 173.
microboy.readJoystick(axis)
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/schizoakustik/microboy and import
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/schizoakustik/microboy and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
- for PXT/microbit
