General

Makecode for older DFR0536 microbit gamepad

userHead Aaron.Couts 2024-06-10 22:25:38 112 Views2 Replies

I have an older version of the DFR0536 – the one with buttons instead of a joystick.  The newer versions (v3 and v4 I think) have microbit code examples available, but the older one does not.  I assume there was a tutorial or wiki document available when the older version was in production, but as far as I've been able to find, that documentation is no longer available.  If anyone has a copy, I would really appreciate it!

 

2024-06-10 23:09:01

Also if anyone is poking at this:

 

The old button-only version has four directional buttons on the left, assigned to pins 13-16.  The two buttons on the right are pins 1 and 2.

 

The new joystick version has a joystick on the left, assigned to pins 1, 2 and 8.  And four buttons on the right, pins 13-16.

userHeadPic Aaron.Couts
2024-06-10 23:04:35

Found it, here's the Makecode extension:

https://github.com/DFRobot/pxt-gamePad

 

I swear I was looking for this for hours yesterday.  Anyway Digikey (https://www.digikey.com/en/products/detail/dfrobot/DFR0536/8827829?s=N4IgTCBcDaICYDMBOAGArAZgGwgLoF8g) is showing the newer joystick version, but the documentation points to the old version.

 

The documentation for the joystick version is here: https://github.com/DFRobot/DFR0536_GamePad_V3.0_WIKI_EN

userHeadPic Aaron.Couts