Skip to content

(天蓬)The intelligent programming car TPBot(Tianpeng) produced by ELECFREAKS Co.ltd

License

Notifications You must be signed in to change notification settings

elecfreaks/pxt-TPBot

Repository files navigation

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