// oh like playing this is just kote caused making fun testing the 13band (9xWS2812B/band) MEOW-rainbow graphic sound equalizer.. // better testing befor instaling megeq 7 + addition amplifier #include #define screeny 117 CRGBPalette16 currentPalette; TBlendType currentBlending; #define UPDATES_PER_SECOND 5000 extern CRGBPalette16 myRedWhiteBluePalette; CRGB leds[screeny]; void setup(){ FastLED.addLeds(leds, screeny); FastLED.setBrightness(255); currentPalette = RainbowColors_p; currentBlending = BLEND; } uint8_t positron,soltron,brighter,delaybase; uint16_t count,count2,zentelsecs,randomy; uint8_t mody=2; void loop(){ zeitreise(); count++; if (count <=118) {count=4095;} positron++; if (positron>=11) {positron=0;} soltron=positron;count2=count; for( int y = 0; y < screeny; y++) { soltron++;count2--; if (mody ==0){leds[y] = ColorFromPalette( currentPalette,count2, (count2/11)*positron,currentBlending);} if (mody ==1){leds[y] = ColorFromPalette( currentPalette,random(0,255),random(0,25)*10,currentBlending);} if (mody >=2){brighter=random(0,5)*50 ;leds[y].setRGB(brighter,brighter,brighter);} } if (mody==0) {} if (mody==1) {delay(delaybase*2);} if (mody==2) {delay(delaybase*4);} FastLED.show(); } long maintime=millis(); void zeitreise(void){ while ((millis()- maintime) >= 100){zentelsecs++;maintime = millis(); if (zentelsecs > randomy) {zentelsecs=0; randomy=random(20,100);} mody=random(0,3); delaybase=random(5,10);} }