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.
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)
})
- for PXT/microbit
MIT
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.