Data Sheet
5/15/2018
Micro:Mate- A Mini Expansion Board for micro:bit SKU: DFR0518 - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wi
…
https://www.dfrobot.com/wiki/index.php/Micro:Mate-_A_Mini_Expansion_Board_for_micro:bit_SKU:_DFR0518 5/5
#http://docs.dfrobot.com.cn/bxy/examples/servo.html
from microbit import *
import Servo
sv=Servo(pin8)
while True:
sv.angle(0)
sleep(1000)
sv.angle(90)
sleep(1000)
sv.angle(180)
sleep(1000)
sv.angle(90)
sleep(1000)
Expected Results
The Servo turns back and forth from 0-180 in every 4 seconds
More Documents
Schematic & Layout
(https://github.com/Arduinolibrary/DFRobot_Micro_Mate/raw/master/MicroMate%20Expansion%20Shield.pdf)
(http://www.dfrobot.com/) Get Micro:Mate - A Mini Expansion Board for micro:bit
(https://www.dfrobot.com/product-1699.html) from DFRobot Store or DFRobot Distributor.
(http://www.dfrobot.com/index.php?route=information/distributorslogo)
This page was last modified on 16 March 2018, at 10:42.
Content is available under GNU Free Documentation License 1.3 or later (https://www.gnu.org/copyleft/fdl.html) unless otherwise noted.
(https://www.gnu.org/copyleft/fdl.html) (//www.mediawiki.org/)