| Hardware | Funktion | Pin |
|---|---|---|
| KY-022 Modul | Infrarot Eingang | D11 |
| RGB LED | Kanal Rot (PWM) | D3 |
| RGB LED | Kanal Grün (PWM) | D5 |
| RGB LED | Kanal Blau (PWM) | D6 |
| Common Kathode | Massebezug | GND |
#define IRMP_INPUT_PIN 11 #include <irmpSelectAllProtocols.h> #include <irmp.hpp> const int RED = 3, GREEN = 5, BLUE = 6; void setup() { irmp_init(); pinMode(RED, OUTPUT); pinMode(GREEN, OUTPUT); pinMode(BLUE, OUTPUT); } void loop() { if (irmp_get_data(&irData)) { if (!(irData.flags & IRMP_FLAG_REPETITION)) { // Sequenzielle Farbmodulation auslösen updateSystemState(irData.command); } } }