Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.03 KB

File metadata and controls

28 lines (20 loc) · 1.03 KB

TPBot Package

This extension is designed to programme and drive the TPBot, You can get TPBot from the Elecfreaks store

Code Example

let right = 0
let left = 0
TPBot.headlightColor(0xff0000)
basic.forever(function () {
    left = Math.randomRange(-100, 100)
    right = Math.randomRange(-100, 100)
    TPBot.setWheels(left, right)
    basic.pause(1000)
})

Supported targets

for PXT/microbit

License

MIT