Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.04 KB

README.md

File metadata and controls

54 lines (33 loc) · 1.04 KB

Valon-I V3.0

Valon is an easy-to-use programming educational Robot

Valon-I, https://yfrobot.taobao.com/

Basic usage

  • Set the direction and speed of Valon motor
 valon3.motorRun(valon3.Motors.ML, valon3.Dir.CW, 120)
 valon3.motorRun(valon3.Motors.MR, valon3.Dir.CCW, 120)
  • Read ultrasonic sensor
basic.showNumber(valon3.Ultrasonic(PingUnit.Centimeters))
  • Stop the Valon motor
valon3.motorStop(valon3.Motors.ML)
  • Read line tracking sensor
valon3.enablePatrol(valon3.PatrolEnable.PatrolOff)
serial.writeNumber(valon3.readPatrol(valon3.Patrol.PatrolLeft))
  • Read IR sensor value
basic.showNumber(valon3.irButtonCode())

Support infrared mini controller and infrared joystick controller

License

MIT

Supported targets

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