This ELECFREAKS Ring:bit Car package was developed by ELECFREAKS with minor assistance from Tinkercademy.
The ELECFREAKS Ring:bit Car is a small DIY smart car driven by the BBC micro:bit and the ELECFREAKS Ring:bit. The Ring:bit extends the micro:bit's 3 GPIO ports and allow for different sensors and components to be easily attached to the micro:bit. A basic Ring:bit Car can be easily programmed to run autonomously, with a remote control, and even create rainbow beacons of light. Just add one of the many extensions available and your Ring:bit Car can do even more things like line and light following, obstacle avoiding, drawing and more!
let strip: neopixel.Strip = null
RingbitCar.init_wheel(AnalogPin.P1, AnalogPin.P2)
strip = neopixel.create(DigitalPin.P0, 24, NeoPixelMode.RGB)
strip.showRainbow(1, 360)
basic.showIcon(IconNames.Heart)
basic.forever(function () {
strip.rotate(1)
basic.pause(100)
strip.show()
})
basic.forever(function () {
RingbitCar.freestyle(30, 90)
basic.pause(1500)
RingbitCar.freestyle(90, 30)
basic.pause(1500)
})
MIT
for PXT/microbit (The metadata above is needed for package search.)