Approved content

The content below is provided by a partner.

k8robotics/pxt-k8 1.0.3 GitHub

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

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 opencode@microsoft.com with any additional questions or comments.

k8=github:k8robotics/pxt-k8#v1.0.3