Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //F_lying 244 byte
- //Fastled 16x16 rgb led matrix demo
- //Yaroslaw Turbin, 11.12.2020
- //https://vk.com/ldirko
- //https://www.reddit.com/user/ldirko/
- //for one tweet codegolf competition
- //https://www.reddit.com/r/FastLED/comments/jyly1e/challenge_fastled_sketch_that_fits_entirely_in_a/
- //https://twitter.com/skullctf/status/1329474477185445890
- //look how it look in online emulator:
- //https://wokwi.com/arduino/projects/284600490242605581
- #import<FastLED.h>
- #define b(x) sin8(a/x)/16
- CRGBArray<256>l;int a,i;void setup(){LEDS.addLeds<WS2812,3,GRB>(l,256);}void loop(){l%=~8;i=1;while(i++<=17)l[lerp8by8(b(3),b(5),i*15)*16+lerp8by8(b(2),b(4),i*15)]+=CHSV(a/9,~0,~0);a+=4;LEDS.show();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement