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;
}
-
3:01
MoneyMindsTrading
12 hours ago $3.99 earned#1 Day Trader on Rumble : NVIDIA EARNINGS 🚀
30.2K2 -
3:13:12
Price of Reason
15 hours agoDisney CEO Bob Iger PANICS after Trump win? Is Landman any good? The Game Awards Announces Nominees!
59K11 -
2:51:40
Jerry After Dark
15 hours ago3 Point Contest | Presented By Ghost Energy
127K6 -
2:24:56
Kim Iversen
12 hours agoRussia Threatens To NUKE Ukraine | RFK Jr Called Science’s True Voice By Former CDC Chief
120K248 -
1:16:12
Savanah Hernandez
10 hours agoCorrupt Democrats attempt to stop Trump’s plan to fix America
79.4K76 -
53:12
Glenn Greenwald
12 hours agoImprisoned For Journalism: Jeremy Loffredo On His Detention In Israel, Censorship & More | SYSTEM UPDATE #368
111K115 -
51:42
Man in America
15 hours agoTrump, Elon, CBDCs, Digital Prison & the Great Taking w/ James Patrick
85.9K42 -
3:50:14
I_Came_With_Fire_Podcast
13 hours agoSPECIAL LIVE FIRE (w/ Aaron Praeger)
84.3K19 -
49:18
PMG
1 day ago $5.71 earned"Biden Regime Trying to Trigger WW III Before Trump Term Begins, and Ballots Still Being Counted?"
52.3K3 -
1:24:27
Flyover Conservatives
19 hours agoWhile Trump Claimed Victory, Guess What They Were Doing Behind the Scenes... - Mel K | FOC Show
59.1K4