// Matrix effect by Jeremy Williams // Designed for Game Frame // http://www.ledseq.com #include // LED setup #define kMatrixWidth 16 #define kMatrixHeight 16 #define DATA_PIN 2 #define CLOCK_PIN 4 #define NUM_LEDS 256 #define LED_TYPE APA102 #define COLOR_ORDER BGR uint8_t ledBrightness = 64; CRGB leds[NUM_LEDS]; void setup() { // LED Init FastLED.addLeds(leds, NUM_LEDS).setDither(0); FastLED.setBrightness(ledBrightness); FastLED.show(); } void loop() { EVERY_N_MILLIS(75) // falling speed { // move code downward // start with lowest row to allow proper overlapping on each column for (int8_t row=kMatrixHeight-1; row>=0; row--) { for (int8_t col=0; col