You better do your reading

The idea:

(Still don’t know what to do with the two ugly yellow wires…)

This time, I decided that having a red “warning” light on would remind me of past horrors of falling behind on readings and thus give me enough anxiety to open to the page marked by the Starbucks sleeve. When I reach the page marked by The Bean sleeve, I would tuck the Starbucks sleeve inside, turning the red light off and turning on a blue “strobe” light. Time to treat myself to a coffee break AND a dance party in my room.

Better do your reading (Yes, I slapped an Instagram filter over it, whatever.)

The code:

void setup(){
pinMode(7,OUTPUT);
pinMode(4,OUTPUT);
pinMode(8,INPUT);
}

void loop(){
if (digitalRead(8) == LOW){
digitalWrite(7,LOW);
digitalWrite(4,HIGH);
}

if (digitalRead(8) == HIGH){
digitalWrite(7,HIGH);
delay(100);
digitalWrite(7,LOW);
delay(100);
digitalWrite(4,LOW);
}
}

Leave a Reply