Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.13 KB

README.md

File metadata and controls

58 lines (36 loc) · 1.13 KB

Valon-I

Valon is an easy-to-use programming educational Robot

Valon-I

Basic usage

  • Set the direction and speed of Valon motor
 valon.motorRun(valon.Motors.ML, valon.Dir.CW, 120)
 valon.motorRun(valon.Motors.MR, valon.Dir.CCW, 120)
  • Read ultrasonic sensor
basic.showNumber(valon.Ultrasonic(PingUnit.Centimeters))
  • Stop the Valon motor
valon.motorStop(valon.Motors.ML)
  • Read line tracking sensor
valon.enablePatrol(valon.PatrolEnable.PatrolOff)
serial.writeNumber(valon.readPatrol(valon.Patrol.PatrolLeft))
  • Turn on/off the LEDs
valon.writeLED(valon.LED.LEDLeft, valon.LEDswitch.turnOn)
  • Read IR sensor value
basic.showNumber(valon.irButtonCode())

Support infrared mini controller and infrared joystick controller

License

MIT

Supported targets

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