Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // NeoPixel Ring simple sketch (c) 2013 Shae Erisson
- // released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library
- #include <Adafruit_NeoPixel.h>
- #include <unistd.h> //used for some time functions
- #ifdef __AVR__
- #include <avr/power.h>
- #endif
- uint32_t prevTime;
- // Which pin on the Arduino is connected to the NeoPixels?
- // On a Trinket or Gemma we suggest changing this to 1
- #define PIN4 4 //data pin of pixel strip
- #define PIN3 6
- // How many NeoPixels are attached to the Arduino?
- #define NUMPIXELS 32
- Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN4, NEO_GRB + NEO_KHZ800);
- //const int buttonPin = 3;
- int buttonState = 0;
- int delayval = 500; // delay for half a second
- int brightness = 2; //multiplier for intensity.
- void setup() {
- // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket
- #if defined (__AVR_ATtiny85__)
- if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
- #endif
- randomSeed(analogRead(1));
- // End of trinket special code
- pixels.begin(); // This initializes the NeoPixel library.
- pinMode(4,OUTPUT ); //gnd
- pinMode(3, OUTPUT); //+5 vcc
- // End of trinket special code
- digitalWrite(3, HIGH);
- digitalWrite(4,LOW);
- // pinMode(buttonPin, INPUT);
- pinMode(PIN4, OUTPUT);
- }
- //These are colours I use frequently
- uint32_t c=0x000000;
- uint32_t y=0xFFFF00;
- uint32_t w=0xFFFFFF;
- uint32_t o=0xFFA500;
- uint32_t l=0x32CD32;
- uint32_t b=0x0000FF;
- uint32_t i=0x4B0082;
- uint32_t v=0x8A2BE2;
- void somb(int){
- int i=5;
- //Blink on pin3 for ssombero string of LEDs
- digitalWrite(PIN4, HIGH); // turn the LED on (HIGH is the voltage level)
- delay(i); // wait for a second
- digitalWrite(PIN4, LOW); // turn the LED off by making the voltage LOW
- delay(i);
- }
- void z(){
- uint32_t p,r,o,y,g,b,i,v,l;
- p=0xFF69B4;
- r=0xFF0000;
- o=0xFFA500;
- y=0xFFFF00;
- g=0x00FF00;
- l=0x32CD32;
- b=0x0000FF;
- i=0x4B0082;
- v=0x8A2BE2;
- uint32_t a[9]= {p,r,y,o,g,b,i,v,l};
- //pink lemonade
- pixels.clear();
- pixels.setBrightness(10);
- for(int j =0; j <6; j++){
- for(int i =0; i <32; i+=2){
- pixels.setPixelColor(i,a[j]);
- pixels.setPixelColor(i+1,a[j+2]);
- }
- pixels.show();
- delay(5000);
- }
- }
- void cross(){
- pixels.clear();
- int i = rand() % 0 + 8;
- int b = rand() % 100 + 255;
- int n = i + 8;
- uint32_t p,r,o,y,g,x,z,v,l;
- pixels.setBrightness(b);
- p=0xFF69B4;
- r=0xFF0000;
- o=0xFFA500;
- y=0xFFFF00;
- g=0x00FF00;
- l=0x32CD32;
- z=0x0000FF;
- x=0x4B0082;
- v=0x8A2BE2;
- uint32_t a[9]= {p,r,y,o,g,z,x,v,l};
- pixels.setPixelColor(i,a[i]);
- pixels.setPixelColor(n,a[i]);
- pixels.show();
- }
- void gay(){
- uint32_t r,o,y,g,b,i,v;
- r=0xFF0000;
- o=0xFF4400;
- y=0xFFFF00;
- g=0x00FF00;
- b=0x0000FF;
- i=0x6B0088;
- v=0x8A2BE2;
- pixels.clear();
- pixels.setBrightness(255);
- pixels.setPixelColor(0,i);
- pixels.setPixelColor(1, v);
- pixels.setPixelColor(2,v );
- pixels.setPixelColor(3,v );
- pixels.setPixelColor(4, i);
- pixels.setPixelColor(5, b);
- pixels.setPixelColor(6, g);
- pixels.setPixelColor(7, y);
- pixels.setPixelColor(8, o);
- pixels.setPixelColor(9, r);
- pixels.setPixelColor(10,r );
- pixels.setPixelColor(11,r );
- pixels.setPixelColor(12, o);
- pixels.setPixelColor(13, y);
- pixels.setPixelColor(14, g);
- pixels.setPixelColor(15, b);
- pixels.setPixelColor(16, i);
- pixels.setPixelColor(17, v);
- pixels.setPixelColor(18, v);
- pixels.setPixelColor(19, v);
- pixels.setPixelColor(20, i);
- pixels.setPixelColor(21, b);
- pixels.setPixelColor(22, g);
- pixels.setPixelColor(23, y);
- pixels.setPixelColor(24, o);
- pixels.setPixelColor(25, r);
- pixels.setPixelColor(26, r);
- pixels.setPixelColor(27, r);
- pixels.setPixelColor(28, o);
- pixels.setPixelColor(29, y);
- pixels.setPixelColor(30, g);
- pixels.setPixelColor(31, b);
- pixels.show();
- }
- void perception(){
- pixels.setBrightness(1);
- pixels.clear();
- int limit = 50;
- uint32_t v=0xFF4400;
- for(int k = 1; k < limit; k++ ){
- for(int i =0; i < NUMPIXELS/2; i++){
- pixels.setPixelColor(i, v);
- pixels.setPixelColor(i+16, v);
- pixels.show();
- delay(k+(k+(i*5)));
- pixels.clear();
- }
- pixels.clear();
- delay(100);
- }
- }
- void redstar(){
- pixels.setBrightness(95);
- pixels.clear();
- int i = 1;
- int x = 0;
- while(x<NUMPIXELS){
- for(i = 1; i < NUMPIXELS; i++){
- // pixels.setPixelColor(0, pixels.Color(6.6*brightness,0*brightness,0*brightness)); //red
- pixels.setPixelColor(i, pixels.Color(10*brightness,7*brightness,0*brightness)); //red
- pixels.setPixelColor(i+(NUMPIXELS/2), pixels.Color(16*brightness,10*brightness,0*brightness)); //red
- pixels.show();
- delay(500);
- pixels.clear();
- }
- x++;
- }
- }
- void colourTest(){
- pixels.clear();
- int i = 1;
- int x = 0;
- while(x<NUMPIXELS/2){
- for(i = 1; i < NUMPIXELS; i++){
- // pixels.setPixelColor(0, pixels.Color(6.6*brightness,0*brightness,0*brightness)); //red
- pixels.setPixelColor(i, pixels.Color(0xFF,0xA5,0x00)); //red
- pixels.setPixelColor(i+16, pixels.Color(0xFF,0xA5,0x00)); //red
- pixels.show();
- delay(200);
- pixels.clear();
- }
- x++;
- }
- }
- void flower(){
- //yellow petals red core
- pixels.setBrightness(95);
- pixels.setPixelColor(0, pixels.Color(6.5*brightness,0*brightness,0*brightness)); // red n=0 is center.
- for(int i = 1; i <= NUMPIXELS; i++){
- pixels.setPixelColor(i, pixels.Color(3.6*brightness,3.6*brightness,0*brightness)); //yellow
- pixels.show();
- //maybe do a pulse and fade thing IDK
- delay(500);
- }
- delay(10000);
- }
- void msltoe(){
- //yellow petals red core
- pixels.setBrightness(95);
- pixels.setPixelColor(0, pixels.Color(6.5*brightness,0*brightness,0*brightness)); // red n=0 is center.
- for(int i = 1; i <= NUMPIXELS; i++){
- pixels.setPixelColor(i, pixels.Color(0*brightness,10*brightness,0*brightness)); //green
- pixels.show();
- //maybe do a pulse and fade thing IDK
- delay(500);
- }
- pixels.setPixelColor(1, pixels.Color(6.5*brightness,0*brightness,0*brightness));
- pixels.setPixelColor(3, pixels.Color(6.5*brightness,0*brightness,0*brightness));
- pixels.show();
- delay(90000);
- }
- void annRand(){
- pixels.setBrightness(95);
- fill(0);
- int Rn = random(0,9);
- int Gn = random(0,9);
- int Bn = random(0,9);
- for(int j = NUMPIXELS/2; j>=0; j--){
- pixels.setPixelColor(j, pixels.Color(Rn*brightness,Gn*brightness,Bn*brightness));
- pixels.setPixelColor(j+16, pixels.Color(Rn*brightness,Gn*brightness,Bn*brightness));
- pixels.show();
- delay(333);
- }
- delay(9001);
- }
- void green(){
- pixels.setBrightness(65);
- for(int i=0;i<=NUMPIXELS;i++){
- pixels.setPixelColor(i, pixels.Color(0*brightness,8.5*brightness,0*brightness)); // Moderately bright green color.
- pixels.show(); // This sends the updated pixel color to the hardware.
- delay(delayval); // Delay for a period of time (in milliseconds)
- }}
- void spinny(){
- uint8_t offset = 0 ;
- uint8_t i;
- uint32_t color = 0xFFB500; // orange?
- for(i=0; i<32; i++) {
- uint32_t c = 0;
- if(((offset + i) & 7) < 2) c = color; // 4 pixels on...
- pixels.setPixelColor( i, c); // First eye
- pixels.setPixelColor(31-i, c); // Second eye (flipped)
- }
- pixels.show();
- offset++;
- delay(50);
- uint32_t t;
- t = millis();
- if((t - prevTime) > 8000) { // Every 8 seconds...
- color >>= 8; // Next color R->G->B
- if(!color) color = 0xFF0000; // Reset to red
- }
- for(i=0; i<32; i++) pixels.setPixelColor(i, c);
- //prevTime = t;
- pixels.show();
- }
- void USA(){
- pixels.setBrightness(155);
- pixels.setPixelColor(0, pixels.Color(8.5*brightness,0*brightness ,0*brightness)); // red n=0 is center.
- pixels.setPixelColor(1, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(2, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(4, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(6, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(8, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(9, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(10, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(12, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(14, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(17, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(18, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(19, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(21, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(23, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(25, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(26, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- pixels.setPixelColor(31, pixels.Color(8.5*brightness,0*brightness ,0*brightness));
- //Blue
- pixels.setPixelColor(27, pixels.Color(0*brightness,0*brightness ,8.5*brightness));
- pixels.setPixelColor(28, pixels.Color(0*brightness,0*brightness ,8.5*brightness));
- pixels.setPixelColor(29, pixels.Color(0*brightness,0*brightness ,8.5*brightness));
- pixels.setPixelColor(30, pixels.Color(0*brightness,0*brightness ,8.5*brightness));
- //white
- pixels.setPixelColor(3, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(5, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(7, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(11, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(13, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(15, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(16, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(20, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(22, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.setPixelColor(24, pixels.Color(8.5*brightness,8.5*brightness ,8.5*brightness));
- pixels.show();
- delay(24000);
- }
- void fill(int snap){//dual fill with snap
- for(int j = NUMPIXELS/2; j>=0; j--){ //fall all double time
- pixels.setPixelColor(j, w);
- pixels.setPixelColor(j+16, w);
- pixels.show();
- delay(snap); //snap?
- }
- }
- void chan4(){
- uint32_t r,o,y,g,b,i,v;
- r=0xFF0000;
- o=0xFF4400;
- y=0xFFFF00;
- g=0x00FF00;
- b=0x0000FF;
- i=0x6B0088;
- v=0x8A2BE2;
- uint32_t a[]={r,o,y,g,b,i,v}; //
- //fill(44);
- for(int n = 0; n<7; n++){
- pixels.setBrightness(96);
- for(int j = 0; j<4; j+=1){
- pixels.clear();
- for(int i=0; i<32; i+=4){
- int cl = i+j;
- uint32_t x = a[n];
- pixels.setPixelColor(cl, a[n]);
- pixels.setPixelColor(cl+1, a[n]);
- }
- pixels.show();
- delay(100);
- }}
- //delay(200);
- }
- void flash(int x){
- int rate = x;
- if(rate!=600){
- rate=rate;
- }else{
- rate=600;
- }
- pixels.setBrightness(255);
- fill(0);
- pixels.show();
- delay(rate);
- pixels.setBrightness(0);
- fill(0);
- pixels.show();
- delay(rate);
- }
- void fade(){ //fade out
- int br = 195; //lower brightness, makes this function shorter
- int rate = 150;
- int decrement = 3; //amount removed from brightness
- //pixels.setBrightness(br); //brightness is 255 (8bit)
- //fill(0);
- delay(rate);
- for(br; br>=0; br-=decrement){ //decrement 255 -n
- pixels.setBrightness(br);
- pixels.show();
- //fill(0); //quick fill but it fills blue
- delay(rate);
- }
- delay(3000); //stay off before next sequence
- }
- void intensify(){
- int br = 0; //lower brightness, makes this function shorter
- int rate = 150;
- int decrement = 5; //amount removed from brightness
- pixels.setBrightness(br); //brightness is 255 (8bit)
- pixels.show();
- //fill(0);
- //delay(rate);
- for(br; br<=255; br = br + 5){ //decrement 255 -n
- pixels.setBrightness(br);
- pixels.setPixelColor(4,y);
- pixels.show();
- //fill(0); //quick fill but it fills blue
- delay(rate);
- }
- //delay(3000);
- }
- void Randy(){
- pixels.setBrightness(155);
- //32bit rando, rand()only does 16 bit rand.
- uint32_t x = rand() & rand();
- x |= (rand() & rand()) << 8;
- x |= (rand() & rand()) << 16;
- x |= (rand() & rand()) << 24;
- //x |= (rand() & 0xff) << 24;
- // x; colour 32b
- for (int i = 0; i < 32; i++){
- pixels.setPixelColor(i,x);
- pixels.show();
- delay(50);
- }
- // delay(5000);
- }
- void Randy2(){
- uint32_t a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
- a=0x0eeadf;
- b=0x0000ff;
- c=0x560553;
- d=0x2600ff;
- e=0xadd664;
- f=0xf3d187;
- g=0x00ff00;
- h=0xca66c3;
- i=0x89015e;
- j=0x8c60fc;
- k=0x024def;
- l=0xe9359b;
- m=0xf05b16;
- n=0x17055e;
- o=0xff5900;
- p=0xfc14f0;
- q=0xc95725;
- r=0xff0000;
- s=0xCBD009;
- t=0x00ff55;
- u=0xDAC9CF;
- v=0xFDDFBD;
- w=0xD61501;
- x=0xFD0450;
- y=0xfaff00;
- z=0x000000;
- uint32_t colourArray[]={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
- int RandomNumber = random(0,25);
- for (int i = 0; i < 32; i++){
- pixels.setPixelColor(i,colourArray[RandomNumber]);
- pixels.show();
- delay(50);
- }
- }
- void halo(){
- pixels.clear();
- pixels.setBrightness(30);
- uint32_t x = 0xffff00;
- for (int i = 0; i<NUMPIXELS; i++){
- pixels.setPixelColor(i,x);
- pixels.show();
- delay(240);
- }
- delay(14000);
- }
- void bod(){
- int start = 16;
- int last = 32;
- for(int start=16; last<=32; start+=2){
- pixels.setPixelColor(start,y);
- }
- pixels.show();
- }
- void waka(){
- delay(400);
- pixels.setPixelColor(15,y);
- pixels.setPixelColor(12,y);
- pixels.show();
- delay(200);
- pixels.setPixelColor(14,y);
- pixels.setPixelColor(13,y);
- pixels.show();
- delay(200);
- pixels.setPixelColor(14,c);
- pixels.setPixelColor(13,c);
- pixels.show();
- delay(400);
- pixels.setPixelColor(15,c);
- pixels.setPixelColor(12,c);
- pixels.show();
- }
- void pacman(){
- //yum pods
- pixels.setBrightness(255);
- for(int n = 0; n < 12; n++){
- pixels.setPixelColor(n,y);
- }
- bod();
- for(int e = 0; e < 5; e++){
- waka();
- }
- }
- void amaratsu(){
- //The Sun gods go hard bitch.
- //but maybe sunrize and sunset would be cool
- pixels.setBrightness(255);
- for(int x=16; x<32; x++){
- pixels.setPixelColor(x,y);
- pixels.show();
- }
- delay(3000);
- // flash(0);
- pixels.setBrightness(255);
- for(int x=16; x<32; x++){
- pixels.setPixelColor(x,y);
- pixels.show();
- }
- delay(1000);
- fade(); //ok moon.
- }
- void tsukiyami(){ //moon time is a whole month
- // amaratsu();
- pixels.clear();
- pixels.show();
- delay(300);
- pixels.setBrightness(255);
- pixels.setPixelColor(6,b);
- pixels.setPixelColor(5,b);
- pixels.setPixelColor(4,b);
- pixels.show();
- delay(1000);
- //pixels.clear();
- fade();
- //pixels.show();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(7,b);
- pixels.setPixelColor(6,b);
- pixels.setPixelColor(5,b);
- pixels.setPixelColor(4,b);
- pixels.setPixelColor(3,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(8,b);
- pixels.setPixelColor(7,b);
- pixels.setPixelColor(6,b);
- pixels.setPixelColor(5,b);
- pixels.setPixelColor(4,b);
- pixels.setPixelColor(3,b);
- pixels.setPixelColor(2,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(10,b);
- pixels.setPixelColor(9,b);
- pixels.setPixelColor(8,b);
- pixels.setPixelColor(7,b);
- pixels.setPixelColor(6,b);
- pixels.setPixelColor(5,b);
- pixels.setPixelColor(4,b);
- pixels.setPixelColor(3,b);
- pixels.setPixelColor(2,b);
- pixels.setPixelColor(1,b);
- pixels.setPixelColor(0,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(12,b);
- pixels.setPixelColor(11,b);
- pixels.setPixelColor(10,b);
- pixels.setPixelColor(9,b);
- pixels.setPixelColor(8,b);
- pixels.setPixelColor(7,b);
- pixels.setPixelColor(6,b);
- pixels.setPixelColor(5,b);
- pixels.setPixelColor(4,b);
- pixels.setPixelColor(3,b);
- pixels.setPixelColor(2,b);
- pixels.setPixelColor(1,b);
- pixels.setPixelColor(0,b);
- pixels.setPixelColor(15,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- //Its a Full Moon
- pixels.setBrightness(255);
- for(int x=0; x<16; x++){
- pixels.setPixelColor(x,b);
- pixels.show();
- }
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(13,b);
- pixels.setPixelColor(12,b);
- pixels.setPixelColor(11,b);
- pixels.setPixelColor(10,b);
- pixels.setPixelColor(9,b);
- pixels.setPixelColor(8,b);
- pixels.setPixelColor(7,b);
- pixels.setPixelColor(4,b);
- pixels.setPixelColor(3,b);
- pixels.setPixelColor(2,b);
- pixels.setPixelColor(1,b);
- pixels.setPixelColor(0,b);
- pixels.setPixelColor(15,b);
- pixels.setPixelColor(16,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(13,b);
- pixels.setPixelColor(12,b);
- pixels.setPixelColor(11,b);
- pixels.setPixelColor(10,b);
- pixels.setPixelColor(9,b);
- pixels.setPixelColor(8,b);
- pixels.setPixelColor(3,b);
- pixels.setPixelColor(2,b);
- pixels.setPixelColor(1,b);
- pixels.setPixelColor(0,b);
- pixels.setPixelColor(15,b);
- pixels.setPixelColor(16,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(13,b);
- pixels.setPixelColor(12,b);
- pixels.setPixelColor(11,b);
- pixels.setPixelColor(10,b);
- pixels.setPixelColor(9,b);
- pixels.setPixelColor(2,b);
- pixels.setPixelColor(1,b);
- pixels.setPixelColor(0,b);
- pixels.setPixelColor(15,b);
- pixels.setPixelColor(16,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(13,b);
- pixels.setPixelColor(12,b);
- pixels.setPixelColor(11,b);
- pixels.setPixelColor(10,b);
- pixels.setPixelColor(1,b);
- pixels.setPixelColor(0,b);
- pixels.setPixelColor(15,b);
- pixels.setPixelColor(16,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(13,b);
- pixels.setPixelColor(12,b);
- pixels.setPixelColor(11,b);
- pixels.setPixelColor(0,b);
- pixels.setPixelColor(15,b);
- pixels.setPixelColor(16,b);
- pixels.show();
- delay(1000);
- fade();
- delay(1000); //its day time MF
- amaratsu();
- pixels.setBrightness(255);
- pixels.setPixelColor(13,b);
- pixels.setPixelColor(12,b);
- pixels.setPixelColor(15,b);
- pixels.setPixelColor(16,b);
- pixels.show();
- delay(1000);
- fade();
- //delay(1000);
- }
- void sunSet(){}
- void sunRise(){}
- void loop() {
- //chan4();
- //cross();
- z();
- //pixels.show();
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement