Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
Created August 9, 2021 21:19
Show Gist options
  • Save FreeFly19/ad748189878754505626ba1d5e1dbd1a to your computer and use it in GitHub Desktop.
Save FreeFly19/ad748189878754505626ba1d5e1dbd1a to your computer and use it in GitHub Desktop.
EuroLamp IR codes reader
#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