Approved content

The content below is provided by a partner.

resolute-support/pxt-apprentice_Car 1.1.7 GitHub

Apprentice Car blocks for micro:bit

The product page for the Apprentice Car can be found at https://resoluteshop.co.za/product/apprentice-car/

Blocks usage:

kBit.run(KBitDir.RunForward, 50)
basic.pause(500)
kBit.run(KBitDir.RunBackward, 50)
basic.pause(500)
kBit.run(KBitDir.TurnRight, 50)
basic.pause(500)
kBit.run(KBitDir.TurnLeft, 50)
basic.pause(500)
kBit.carStop()
kBit.motor(KBitMotorObs.LeftSide, KBitMotorDir.Forward, 50)
kBit.motor(KBitMotorObs.RightSide, KBitMotorDir.Forward, 50)
irRemote.connectInfrared(DigitalPin.P0)
basic.forever(function () {
    if (irRemote.returnIrButton() == irRemote.irButton(KBitIrButtons.Ok)) {
        basic.showString("OK")
        basic.pause(100)
        basic.clearScreen()
    }
})
let strip = neopixel.create(DigitalPin.P5, 18, NeoPixelMode.RGB)
basic.forever(function () {
    strip.showColor(neopixel.colors(NeoPixelColors.Yellow))
})
kBit.ledBrightness(100)
kBit.led(KBitColor.Red)

License

MIT

Supported targets

Further resources

More info can be found here

apprentice_car=github:resolute-support/pxt-apprentice_Car
apprentice_car=github:resolute-support/pxt-apprentice_Car#v1.1.7