Approved content
The content below is provided by a partner.
Hover:bit is a swift, environmental friendly diy hovercraft for micro:bit. Learn more at about hover:bit at https://www.makekit.no/hoverbit and you can order from https://shop.makekit.no or a distributor.
Full building instructions and videos at www.makekit.no/docs
This library provides a Microsoft Makecode extension for MakeKit Hover:bit
https://www.makekit.no/hoverbit
You start the cushion motor on P0 with start_cushion. You control the pusher power of motor M2 with a number between 0 and 100. Use the variable arm to turn motors on and off.
// Motor control
if (arm) {
hoverbit.start_cushion_simple()
hoverbit.forward_power_simple(throttle)
} else {
hoverbit.stop_all_motors()
}
You control the rudder with a servo on P1. Input is a number between -90 and 90.
basic.forever(function () {
hoverbit.direction_simple(roll)
})
If you want to connect a servo to another pin (P0-P2).
hoverbit.servo_angle(roll, list_servo.S1)
Set the cushion motor on P0 between 0 and 100.
hoverbit.cushion_power(10)
Control the speed on any motor (P0-P2)
hoverbit.motor_power(list_motor.M0, 0)
Stop the cushion motor only with
hoverbit.stop_cushion_simple()
MIT
hoverbit=github:gomakekit/Hoverbit_V2#vundefined