Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
Connect Sound module with OSOYOO PnP board for micro:bit P0 with OSOYOO 3-pin PnP cable ;
Connect LED module to P1 port of OSOYOO PnP board with OSOYOO 3-pin PnP cable as below;
Step 0: Go to url: https://makecode.microbit.org , click New Project , right click on start block and delete it.
Step 1. In the Toolbox, click on the Basic category , click and drag the show number block over and place it inside the placeholder of the forever block as following figure.
Step 2. Click on the Pins category. Then click and drag the analog read pin block over, and place it inside the placeholder of the show number block as following figure.
Step 3. In the Toolbox, click on the Logic category . Now, click and drag the if ~then~else block over and place it inside the forever block as following figure .
Step 4. Drag and drop a 0<0 block,and place it inside the placeholder of the if ~then~else block, just below the show number block as following figure.
Step 5. In the Toolbox, click on the Pins category and Click and drag the analog read pin block over and place it inside the 0<0 block. Then set analog read P0 ≤ 700 in it as following figure .
Step 6.Click on the Pins category. Then click and drag the digital write pin block and drop it inside the if ~then ~else block. Then choose digital write pin to P1 from the drop-down menu as following figure.
Step 7. Click duplicate from the digital write pin to block over . You will get a duplicated block ,and place it inside the else block .set the digital pin value to 1 as following figure.
Step 8. Download this “.hex” file and save it to your MICROBIT disk Driver as following figure.
Below are the full Graphic programming code blocks we have done for you as reference:
DownLoad Url osoyoo.com