This extension is designed to programme and drive the TPBot, You can get TPBot from the Elecfreaks store
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)
})
for PXT/microbit
MIT