Valon is an easy-to-use programming educational Robot
Valon-I, https://yfrobot.taobao.com/
- 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
MIT
- for PXT/microbit (The metadata above is needed for package search.)