Skip to content

YFROBOT-TM/pxt-yfrobot-valon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published