GooBit extension for makecode -- From YFROBOT Support Motorbit, integrated ultrasonic ranging, patrol line, infrared remote control, RGB led and other functions. 支持MotorBit,集成超声波测距、巡线行驶、红外遥控、彩灯等功能。
GooBit is an easy-to-use education robot kit for MicroBit
- Set the direction and speed of GooBit motor
GooBit.motorRun(GooBit.Motors.ML, GooBit.Dir.CW, 120)
GooBit.motorRun(GooBit.Motors.MR, GooBit.Dir.CCW, 120)
- Stop the GooBit motor
GooBit.motorStop(GooBit.Motors.ML)
- Move forward
GooBit.forward(128)
- Move back
GooBit.back(128)
- Turn left
GooBit.turnLeft(128)
- Turn right
GooBit.turnRight(128)
- Read IR sensor value
basic.showNumber(GooBit.irButtonCode())
MIT
Copyright (c) 2021, YFROBOT
- for PXT/microbit (The metadata above is needed for package search.)