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 5/7
(/wiki/index.php/File:DFR0536-edu04.jpg)
Rock-Paper-Scissors
Execution of the Program:
1. First, you should set the two main boards are in the 1th wireless group, so that they can communicate with each other.
2. When the left button is pressed, LED dot matrix displays the scissors, and sends the number 1.
3. When the down button is pressed, LED dot matrix displays the rock, and sends the number 2.
4. When the right button is pressed, LED dot matrix displays the paper, and sends the number 3.
5. In the infinite loop, compare the wireless received numbers with your own Numbers;if you lost,it will display “×", if you win, it will show "√".
6. After showing the result, clear all data.
Yacht
Graphical source program: Dice Game (https://makecode.microbit.org/88613-07172-15323-53378)
(/wiki/index.php/File:DFR0536-edu05.png)
Yacht
Execution of the Program:
1. Set the wireless to group 1 when booting, and initialize item to 0.
2. When the vibration is detected, turn off the LED and initialize the value to 0, and use the acceleration value to produce a random number between 1 and 6.