Skip to content

YFROBOT-TM/pxt-goobit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GooBit

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

MotorBit To Buy

Basic usage

  • 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())

License

MIT

Copyright (c) 2021, YFROBOT

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published