Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //SinDots 260 byte
- //Fastled 16x16 rgb matrix demo
- //Yaroslaw Turbin, 27.01.2021
- //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/288857088376963592
- #include <FastLED.h>
- CRGB d[256];byte i,t,u;void setup(){LEDS.addLeds<WS2812,3,GRB>(d,256);}void loop(){t=millis()/15;u=t*2;for(i=13;i--;)d[XY(sin8(t+i*20)>>4,sin8(u+i*20)>>4)].setHue(i*19);blur2d(d,16,16,32);LEDS.show();}int XY(byte x,byte y){return(y*16+x);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement