This extension is designed to programme and drive the Longanbit, You can get longanbit from the here
basic.forever(function () {
if (Longan.crashSensor(DigitalPin.P2)) {
Longan.stopMotor(Longan.MotorList.M1)
} else {
basic.showNumber(Longan.ReadSoilHumidity(AnalogPin.P1))
}
})
- for PXT/microbit
MIT
