For the midterm reflection, you can check here.
This week I follow the demo quite smoothly.
Some attempts:
- Set the hue changes randomly.
if (digitalRead(2) == HIGH) { sendRequest(3, "hue", String(random(0, 65535))); }
2. Potentiometer to control the hue in a certain range.
int potentiometerVal = analogRead(A0); Serial.println(potentiometerVal); int colorChange = map(potentiometerVal, 0, 1023, 3000, 30000); Serial.println(colorChange); sendRequest(3, "hue", String(colorChange));