d333gs

Hand shake

Nov 8th, 2020
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <FastLED.h>
  2. #define NUM_LEDS 512
  3. #define pinin 4
  4. #define pinout 5
  5.  
  6. CRGBArray<NUM_LEDS> leds;
  7.  
  8. void setup()
  9. { FastLED.addLeds<NEOPIXEL,6>(leds, NUM_LEDS);
  10. pinMode (pinin, INPUT);
  11. pinMode (pinout, OUTPUT);
  12. digitalWrite(pinout, LOW);}
  13.  
  14. void loop()
  15. {
  16.   digitalWrite(pinout, HIGH);
  17.  
  18. while (digitalRead (pinin) == (LOW));
  19.  
  20. delay (10);
  21. digitalWrite(pinout, LOW);
  22. // red , Still concidering using i
  23.  
  24. for(int i = -5; i<=3;i++){
  25.   leds (0,95)= CHSV(-5,255,150);
  26.   leds (464,512)= CHSV(-5,255,150);
  27.    {for(int i = 3; i>=-5;i--){
  28.    }
  29.  
  30.    //WHITE CENTER
  31.   for(int i = 60; i<=200;i++){
  32.   leds(96,463)= CHSV(i,125,70);
  33.  
  34.   FastLED.delay(500);
  35.  for(int i = 200; i>=60;i--)
  36.  leds(96,111)= CHSV(i,125,70);
  37.  leds(112,447)= CHSV(i,125,95);
  38.  leds(448,463)= CHSV(i,125,70);
  39.  
  40.  }
  41. // FLASH
  42.  leds (0,512)= CHSV(55,255,0);
  43.  FastLED.delay(50);
  44.  
  45.    leds (5,10)= CHSV(55,255,150);
  46.    leds (21,26)= CHSV(55,255,150);
  47.    leds (37,42)= CHSV(55,255,150);
  48.    leds (53,58)= CHSV(55,255,150);
  49.    leds (69,74)= CHSV(55,255,150);
  50.    leds (85,90)= CHSV(55,255,150);
  51.    leds (101,106)= CHSV(55,255,150);
  52.    leds (117,122)= CHSV(55,255,150);
  53.    leds (133,138)= CHSV(55,255,150);
  54.    leds (149,154)= CHSV(55,255,150);
  55.    leds (165,170)= CHSV(55,255,150);
  56.    leds (181,186)= CHSV(55,255,150);
  57.    leds (197,202)= CHSV(55,255,150);
  58.    leds (208,223)= CHSV(55,255,150);
  59.    leds (224,239)= CHSV(55,255,150);
  60.    leds (240,255)= CHSV(55,255,150);
  61.    //Panel two
  62.    leds (256,271)= CHSV(55,255,150);
  63.    leds (272,287)= CHSV(55,255,150);
  64.    leds (288,303)= CHSV(55,255,150);
  65.    leds (309,314)= CHSV(55,255,150);
  66.    leds (325,330)= CHSV(55,255,150);
  67.    leds (341,346)= CHSV(55,255,150);
  68.    leds (357,362)= CHSV(55,255,150);
  69.    leds (373,378)= CHSV(55,255,150);
  70.    leds (389,394)= CHSV(55,255,150);
  71.    leds (405,410)= CHSV(55,255,150);
  72.    leds (421,426)= CHSV(55,255,150);
  73.    leds (437,442)= CHSV(55,255,150);
  74.    leds (453,458)= CHSV(55,255,150);
  75.    leds (469,474)= CHSV(55,255,150);
  76.    leds (485,490)= CHSV(55,255,150);
  77.    leds (501,507)= CHSV(55,255,150);
  78.    FastLED.delay(150);  
  79.    
  80.    }}}  
  81.  
  82.  
  83.  
  84.    
  85.    
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×