MakeCode JoyCar Additional Functions

Here you will find more functions of the Joy-Car, which go beyond the previous motor functions, sensor queries and light settings.

Buzzer

Play a predefined melody through the buzzer. You can also choose if the melody is played only once or if it should be repeated permanently.

Battery voltage

The battery voltage can be queried via the analog-digital converter pin of the micro:bit. This way the remaining battery capacity can be determined.

Battery voltage reading - Example 1

In this example, the current battery voltage is read out. The read out value is output on the LEDs of the micro:bit. Afterwards a V (for Volt) is output. Then the LEDs are reset with clear screen. After a 5 second pause, the "forever" block starts again.

Buzzer - Example 1

Using the "play music" block is quite simple. Choose a melody and define if it should be played once or permanently.

Achtung!

Ihr Webbrowser ist veraltet. Wechseln Sie jetzt zu einem aktuellen Browser für mehr Sicherheit, Geschwindigkeit und den besten Komfort auf dieser Seite.