#define PIN_RED 11
#define PIN_GREEN 10
#define PIN_BLUE 9
int leuchtstaerke = 0;
void setup() {
// put your setup code here, to run once:
pinMode(PIN_RED, OUTPUT);
pinMode(PIN_GREEN, OUTPUT);
pinMode(PIN_BLUE, OUTPUT);
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
// read the incoming byte:
String input = Serial.readString();
// say what you got:
Serial.print("I received: ");
Serial.println(input);
delay(3000);
}
}
void setColor(int red, int blue, int green){
analogWrite(PIN_GREEN, red);
analogWrite(PIN_GREEN, green);
analogWrite(PIN_BLUE, blue);
}