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