Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kuckucksmuehle:events:music_leds_on-off [2018/07/23 14:16] (current)
julius_kingsman created
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,​ music.beat(BeatFraction.Whole))
 +    }
 +})
  
  • kuckucksmuehle/events/music_leds_on-off.txt
  • Last modified: 2018/07/23 14:16
  • by julius_kingsman