Advertisement
ldirko

Without_Sin

Dec 1st, 2020 (edited)
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Without_Sin  252 byte
  2. //Fastled 16x16 rgb led matrix demo
  3. //Yaroslaw Turbin, 01.12.2020
  4. //https://vk.com/ldirko
  5. //https://www.reddit.com/user/ldirko/
  6.  
  7. //for one tweet codegolf competition
  8. //https://www.reddit.com/r/FastLED/comments/jyly1e/challenge_fastled_sketch_that_fits_entirely_in_a/
  9. //https://twitter.com/skullctf/status/1329474477185445890
  10.  
  11. //look how it look in online emulator:
  12. //https://wokwi.com/arduino/projects/283710692270277133
  13.  
  14. #import<FastLED.h>
  15. CRGB l[256];float a,d,k=1.996,b,c=-.06,e=1.997,f,g=-.05,i;void setup(){LEDS.addLeds<WS2812,3,GRB>(l,256);}void loop(){a=k*b-c;c=b;b=a;d=e*f-g;g=f;f=d;int x=a*8+8,y=d*8+8;l[y*16+x].setHue(i+=.2);fadeToBlackBy(l,256,15);LEDS.delay(9);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement