Data Sheet

5/26/2018 Micro:bit Gamepad Expansion Board SKU: DFR0536 - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.c
https://www.dfrobot.com/wiki/index.php/Micro:bit_Gamepad_Expansion_Board_SKU:_DFR0536#More_Documents 2/7
Buzzer Control pin P0
PWR Power Indicator
Switch Turn off the power
Opearting Voltage 3V~3.7V2x AAA batteries
MakeCode Graphical Programming
The basic tutorial of MakeCode:
The library of gamepad: https://github.com/DFRobot/pxt-gamePad (https://github.com/DFRobot/pxt-gamePad)
1. Enter MakeCode (https://makecode.microbit.org/)
2. Find Advanced > Add package
3. Copy the library link and paste it in the option box
4. Click the gamepad, and you can find a new icon on the right.
The programming of event trigger
(/wiki/index.php/File:DFR0536-edu01.png)
Event Trigger Mode-Press and Release Buttons
Result: When the X is pressed, the vibration motor vibrates and the LED lights up; when the X is released, the vibration motor stops and the LED turns off.
(/wiki/index.php/File:DFR0536-edu02.png)
Event Trigger Mode-Click Buttons
Result: When the X is pressed, the vibrating motor vibrates and the LED lights up; when the Y is pressed, the vibrating motor stops and the LED turns off.
The Programming of Cyclic Query
(/wiki/index.php/File:DFR0536-edu03.png)
Event Trigger Mode-Click Buttons
Result: When the X is pressed, the vibration motor vibrates at the strength of 175, and when the X is released, the vibration motor stops vibrating.