Open this page at https://.github.io//
reference https://github.com/gbraad/pxt-ps2-controller
This repository can be added as an extension in MakeCode.
- open makecode_microbit
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/YFROBOT-TM/pxt-ps2-controller and import
To edit this repository in MakeCode.
- open makecode_microbit
- click on Import then click on Import URL
- paste https://github.com/YFROBOT-TM/pxt-ps2-controller and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh. PS2 Buttons
ps2controller.button_pressed(ps2controller.PS2Button.Cross)
PS2 Stick value
ps2controller.stick_value(ps2controller.PSS.RX)
- for PXT/microbit