Premium Only Content
Digital Flare Part 3 Programming
The angled brackets aren't allowed on YouTube coments. There are notes on the lines to fix them:
- fix this line #include (here)Adafruit_NeoPixel.h(here)
#define PIN 6
#define pix 28
Adafruit_NeoPixel strip = Adafruit_NeoPixel(pix, PIN, NEO_GRB + NEO_KHZ800);
#define yellow 200,55,0
#define off 0,0,0
void setup() {
pinMode(8,INPUT_PULLUP);
pinMode(9,INPUT_PULLUP);
strip.begin();
strip.show();
- (less than) for(int a=0;a(here)pix;a++){
strip.setPixelColor(a,yellow);
strip.show();
delay(35);
strip.setPixelColor(a,off);
}
strip.show();
}
int pgm;
int spd=10;
int pixel;
int bright;
long unsigned timer=millis();
void loop() {
if(pgm==0){
strip.setPixelColor(pixel,off);
pixel++;
pixel%=pix;
strip.setPixelColor(pixel,yellow);
strip.show();
}
if(pgm==1){
- (less than) for(int a=0;a(here)pix;a++){
if(bright){strip.setPixelColor(a,yellow);}
if(!bright){strip.setPixelColor(a,off);}
}
strip.show();
bright=!bright;
}
if(pgm==2){
- (less than) for(int a=0;a(here)pix;a++){
if(bright){strip.setPixelColor(a,255,0,0);}
if(!bright){strip.setPixelColor(a,0,0,255);}
}
strip.show();
bright=!bright;
}
fix this line (less than) while(millis()(here)timer){
if(!digitalRead(8)){
pgm++;
pgm%=3;
delay(2);
while(!digitalRead(8)){}
delay(2);
}
if(!digitalRead(9)){
spd+=25;
fix this line (More than) if(spd(here)150){spd=10;}
delay(2);
while(!digitalRead(9)){}
delay(2);
}
}
timer+=spd;
}
-
19:08
ThinkStory
1 hour agoSTRANGER THINGS SEASON 5 Volume 1 Ending Explained, Theories, & Details You Missed!
31 -
UPCOMING
The Mike Schwartz Show
12 hours agoTHE MIKE SCHWARTZ SHOW with DR. MICHAEL J SCHWARTZ 11-28-2025
154 -
7:02
DEADBUGsays
3 hours agoThe Murder of Kathy Halle | Solved #19
101 -
56:09
A Cigar Hustlers Podcast Every Day
4 hours agoCigar Hustlers Podcast Every Week Day "Holiday Travel, Black Friday"
5 -
LIVE
LFA TV
12 hours agoLIVE & BREAKING NEWS! | FRIDAY 11/28/25
9,898 watching -
24:56
Jasmin Laine
17 hours agoOttawa Uses CHILDREN to Push Censorship—Carney Tears Up His Own Climate Agenda
24.8K37 -
12:45
MudandMunitions
16 hours agoSupercharged Silverado Trail Boss Lifted 35s & Steelcraft Bumper
15.5K4 -
8:25
Hollywood Exposed
14 hours agoRob Schneider DESTROYS De Niro After His Anti-Trump Meltdown
12.6K30 -
1:43
GreenMan Studio
15 hours agoWEAK MEN W/Greenman Reports
16.5K3 -
2:05:28
BEK TV
2 days agoTrent Loos in the Morning - 11/28/2025
12.7K