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;
}
-
20:36
brakthehun
3 years agoDigital Flare Part 2 Soldering!!
3 -
17:36
brakthehun
3 years agoDigital Flare Part 1 Parts and initial build
2 -
16:42
Shane Welcher
3 years agoWhat is a Boolean In Studio 5000 | XIC instruction & XIO instruction tutorial | Batching PLC Day-18
19 -
3:42
AllVisuals4U | Design & Engineering
7 months ago💡 You NEED To Know This - FreeCAD Boolean Operations - FreeCAD Tutorial Part Design
59 -
1:50
thedotisblack
3 years agoDigital ART with optical illusions | Grid 08 (Algorithmic Art, Creative Coding)
7 -
12:24
Tech With Tim
3 years agoLearn C++ With Me #7 - Logical Operators (And, Or and Not)
17 -
5:55
Tech With Tim
3 years agoLearn C++ With Me #13 - Strings
6 -
20:21
16-Bit Computer From Scratch
2 months ago0014: Register Control Circuitry (Part I) | 16-Bit Computer From Scratch
6 -
6:07
TruthUnfold
1 year ago"Music Is Frequency Programming" 440HZ
40 -
4:03:01
druuzil
9 months agoDeepfacelab 2.0 MVE Fork & Deepface Live Tutorial - 2023 Edition
472