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:00:43
The Quartering
5 hours agoThe MAGA Wars Have Begun! Vivek & Elon Get Massive Backlash & Much More
50.8K16 -
1:25:53
Kim Iversen
3 days agoStriking Back: Taking on the ADL’s Anti-Free Speech Agenda
40.3K15 -
49:35
Donald Trump Jr.
8 hours agoA New Golden Age: Countdown to Inauguration Day | TRIGGERED Ep.202
123K136 -
1:14:34
Michael Franzese
7 hours agoWhat's Behind Biden's Shocking Death Row Pardons?
52K36 -
9:49
Tundra Tactical
5 hours ago $0.40 earnedThe Best Tundra Clips from 2024 Part 1.
32.3K5 -
1:05:19
Sarah Westall
6 hours agoDying to Be Thin: Ozempic & Obesity, Shedding Massive Weight Safely Using GLP-1 Receptors, Dr. Kazer
39.7K11 -
54:38
LFA TV
1 day agoThe Resistance Is Gone | Trumpet Daily 12.26.24 7PM EST
30.7K6 -
58:14
theDaily302
14 hours agoThe Daily 302- Tim Ballard
36.3K1 -
13:22
Stephen Gardner
8 hours ago🔥You'll NEVER Believe what Trump wants NOW!!
86.5K223 -
54:56
Digital Social Hour
1 day ago $1.35 earnedDOGE, Deep State, Drones & Charlie Kirk | Donald Trump Jr.
46.1K4