Play sounds and light up LED with IR remote, how do I loop things?

wildbill:
Couple of issues here:

      case audio_three:

myPlayer.playFileAndWait(3, 10)

The audio_three case has a break after it. audio_four doesn't so it falls through to execute the holo_key case too.

The led array has one element (why?) but it is led[0], not led[1].
[/quote][quote author=wildbill link=msg=3678183 date=1522939676]
Couple of issues here:

The audio_three case has a break after it. audio_four doesn't so it falls through to execute the holo_key case too.

The led array has one element (why?) but it is led[0], not led[1].
[/quote]

Oh sorry, the missing break is a copy paste error. There are actually 12 sounds in there, I figured a few was more than enough for you guys to get the gist, but I removed a line to many :slight_smile:

The LED array is something I just moved over from my test with just the LED, went through learning how to turn it on and off through a tutorial, it worked, so figured it was fine. But that [1] should be a [0]?