Week 8 – HUE

For the midterm reflection, you can check here.

This week I follow the demo quite smoothly.

Some attempts:

  1. 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));

Leave a Reply

Your email address will not be published. Required fields are marked *