Created
August 9, 2021 21:19
-
-
Save FreeFly19/ad748189878754505626ba1d5e1dbd1a to your computer and use it in GitHub Desktop.
EuroLamp IR codes reader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <IRremote.h> | |
int RECV_PIN = 2; | |
IRrecv irrecv(RECV_PIN); | |
void setup() { | |
Serial.begin(9600); | |
irrecv.enableIRIn(); | |
} | |
void loop() { | |
// Returns 0 if no data ready, 1 if data ready. | |
if (irrecv.decode()) { | |
Serial.print("Code: "); | |
Serial.println(irrecv.decodedIRData.command); | |
irrecv.resume(); | |
} | |
} | |
// Commands: | |
// Enable/Disable - 0 | |
// Change Color (loop) - 1 | |
// Sleep in 30 mins - 9 | |
// Increase Intensity - 5 | |
// Decrease Intensity - 4 | |
// Increase Kelvins - 10 | |
// Decrease Kelvins - 2 | |
// Sleep Mode - 6 | |
// 20% - 3 | |
// 50% - 7 | |
// 100% - 11 | |
// 3000k - 64 | |
// 4000k - 68 | |
// 6000k - 72 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment