no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | kuckucksmuehle:events:music_leds_on-off [2018/07/23 14:16] (current) – created julius_kingsman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Calliope coding music+leds on-off ====== | ||
+ | input.onButtonPressed(Button.A, | ||
+ | basic.showLeds(` | ||
+ | . . # . . | ||
+ | . . # . . | ||
+ | . . # . . | ||
+ | . . # . . | ||
+ | . . # . . | ||
+ | `) | ||
+ | while (!(input.buttonIsPressed(Button.B))) { | ||
+ | control.waitMicros(4) | ||
+ | music.playTone(262, | ||
+ | } | ||
+ | }) | ||