Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions FredLightingCopy.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Absolute version on the collar as of 3-24-2026!
//Absolute version on the collar as of 3-26-2026!
#include <Adafruit_NeoPixel.h>

#define PIN 3
Expand Down Expand Up @@ -30,9 +30,11 @@ void setup() {
boolean check(){
boolean change = false;
int sensorValue=analogRead(sensorPin);
if (sensorValue < 512) {select++; change = true;}

if (sensorValue < 512) {select++; change = true; clearStrip(); delay(1500);}

if (select > 4) select = 0;
delay(67);

return change;
}

Expand Down Expand Up @@ -130,7 +132,7 @@ void loop() {
else if (select == 3) blueBandTask(i);
else if (select == 4) redBandTask(i);
if (check()) {clearStrip(); break;}
delay(20);
delay(50);
}

}
Expand Down