Skip to content

k8robotics/pxt-k8

Repository files navigation

k8 Robotics Board

This library provides functions to interface with the motors, sensors and other inputs & outputs that are part of the k8 Robotics Kit. More information at https://www.inksmith.co/k8-robotics-kit.

Example Usage

To drive forward, then backward

basic.forever(() => {
    motion.driveStraight(50)
    basic.pause(1000)
    motion.driveStraight(-50)
    basic.pause(1000)
})

To see the current state of the line sensors.

basic.forever(() => {
    lineSensors.displaySensors()
})

To initialize servos and move them to a lifted position.

basic.forever(() => {
    servos.resetServos()
    servos.setLeftServoPosition(Position.UP)
    servos.setRightServoPosition(Position.UP)
})

Supported targets

  • for PXT/microbit

License

MIT

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

Library to interact with the k8 Robotics Kit

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •