User manual

actually change the color and My_Receiver.resume() to reset the receiver so it can collect another
code.
Upload the sketch and try pressing the volume down, play/pause, and volume up buttons. You
should see the pixel change to red, green, or blue. You can easily add additional case statements
and colors or perhaps have one of the cases call an animation routine to animate the entire strip of
pixels. Different buttons on the remote would select different animation patterns.
You will have to modify this sketch if you are using a different remote control. Change the protocol
type spuch as:
for example if you are using a Sony remote. And of course you have to substitute the proper codes
in each case statement. The enumerated list of available protocols for comparing decode_type can
be found at approximately line 60 of IRLib.h.
if (My_Decoder.decode_type==SONY)
© Adafruit Industries https://learn.adafruit.com/using-an-infrared-library Page 13 of 23