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;
}
-
1:12:09
Talk Nerdy 2 Us
8 hours ago🚨Cyber Siege: From White House Scandals to Global Cyber Threats 🚨
42.3K15 -
26:49
Alexis Wilkins
14 hours agoBetween the Headlines with Alexis Wilkins: Michael Cohen on Tik Tok, Free Speech, AR Lectern, FDNY
45.8K33 -
1:53:34
Fresh and Fit
1 day agoSulaiman Ahmed And Destiny Debate Israel Palestine Conflict!
182K346 -
1:35:13
Roseanne Barr
12 hours ago $12.26 earnedGuns And Chardonnay | The Roseanne Barr Podcast #46
76.1K131 -
58:25
The StoneZONE with Roger Stone
10 hours agoWill America’s Population Die? Is America Caught In A Death Spiral? Kevin Dolan Enters The StoneZONE
57.1K46 -
1:21:14
Glenn Greenwald
12 hours agoPost-9/11 "Terrorism" Hysteria Returns With a Vengeance | SYSTEM UPDATE #266
93K269 -
1:09:36
Tucker Carlson
10 hours agoAdvice to Men: Reject Sex, Parties, and Fame. Embrace God Instead.
148K168 -
2:39:51
ZeroHedge
11 hours agoThe Great Crypto Vs Gold Debate
52.5K25 -
2:14:33
The Quartering
17 hours agoThe Heartbreaking State Of Men! w/ Better Bachelor
82.1K59 -
1:07:48
Edge of Wonder
12 hours agoCIA Docs About Vampires, Alien Encounters, Antarctica & More Weird News
48.8K39