Approved content
The content below is provided by a partner.
DFRobotMaqueenPlus.I2CInit()
DFRobotMaqueenPlus.mototRun(Motors.ALL, Dir.CW, 255)
DFRobotMaqueenPlus.mototStop(Motors.M1)
DFRobotMaqueenPlus.I2CInit()
basic.forever(function () {
serial.writeValue("speed", DFRobotMaqueenPlus.readSpeed(Motors1.M1))
serial.writeValue("direction", DFRobotMaqueenPlus.readDirection(Motors1.M1))
})
DFRobotMaqueenPlus.I2CInit()
basic.forever(function () {
serial.writeValue("patorl", DFRobotMaqueenPlus.readPatrol(Patrol.L1))
serial.writeValue("voltage", DFRobotMaqueenPlus.readPatrolVoltage(Patrol.L1))
})
DFRobotMaqueenPlus.I2CInit()
basic.forever(function () {
serial.writeValue("IR", DFRobotMaqueenPlus.IR_read())
serial.writeValue("ultrasonic", DFRobotMaqueenPlus.ultraSonic(PIN.P0, PIN.P0))
})
DFRobotMaqueenPlus.I2CInit()
DFRobotMaqueenPlus.servoRun(Servos.S1, 100)
DFRobotMaqueenPlus.I2CInit()
DFRobotMaqueenPlus.setRGBLight(RGBLight.RGBL, Color.RED)
MIT
Copyright (c) 2018, microbit/micropython Chinese community
MaqueenPlus=github:DFRobot/pxt-DFRobot-Maqueenplus#v1.5.1