Open this page at https://bigqubot.github.io/pxt-triodecar/
edited by webduino-cn
Use the CarDirection
blocks to control the car
basic.forever(() => {
triodecar.CarDirection(triodecar.direction.foward)
})
Use the readPatrol
blocks to control the car
basic.forever(() => {
serial.writeLine("" + (triodecar.readPatrol(triodecar.Patrol.PatrolLeft)))
})
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/bigqubot/pxt-triodecar and import
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/bigqubot/pxt-triodecar and click import
- for PXT/microbit