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;
}
-
2:16:33
Tucker Carlson
2 hours agoTucker Carlson and Michael Shellenberger Break Down the California Fires
110K143 -
58:50
Laura Loomer
1 hour agoThe Great Replacement (Full-Length Documentary)
5.2K13 -
LIVE
Razeo
1 hour agoEp 31: Finishing March Ridge & onto Muldraugh tonight
312 watching -
LIVE
Adam Does Movies
40 minutes agoBatman II Update + Flash Director Fails + Movie Bombs! - LIVE!
58 watching -
LIVE
We Like Shooting
14 hours agoWe Like Shooting 593 (Gun Podcast)
116 watching -
LIVE
Flyover Conservatives
21 hours agoJack Hibbs Blasts California Leaders: Must-Watch!; Can Trump Fix the Mess? How Long will it Take? - Dr. Kirk Elliott | FOC Show
780 watching -
LIVE
DillyDillerson
1 hour agoTalking to the moon!! Just some live views of the FULL MOON!!
174 watching -
1:29:29
Glenn Greenwald
5 hours agoWith Biden Out, U.S. Finally Admits Harms of His Israel / Gaza Policy; Biden Pays Homage To George W. Bush; Insane Women’s Tennis Scandal: An “Abusive” Coach | SYSTEM UPDATE #388
35.8K35 -
LIVE
Danny Polishchuk
7 hours agoWho's To Blame For LA Fires, Jewish Tunnels Update + Forbidden Anthropology
279 watching -
1:08:10
Donald Trump Jr.
7 hours agoOne Week Until Inauguration, Live with Rep Anna Paulina Luna & Sen Tommy Tuberville
106K115