Connect motor module with OSOYOO expansion board for Micro:bit P1 with 3pin wire as below;
Step 1. In the Toolbox, click on the Input category and then click the on button pressed block over , and then place it inside the placeholder .
Step 2.Click on the Pins category . click and drag a digital write pin to block over, and place it in the on button pressed A block . Then choose P1 from the dropdown list.
Step 3. In the Toolbox, click on the Input category again. click the on button pressed block over , and then place it inside the placeholder .Then choose B from the dropdown list.
Step 4. Click on the Pins category again . click and drag a analog write pin to block over, and place it in the on button B pressed block . Then choose O from the dropdown list.
Step 5. Download this “.hex” file and send it to your MICROBIT disk.
Below is the full code we have done for you as reference:
DownLoad Url osoyoo.com