Adruino Uno R3 not enough dynamic memory

So I am running this code on the adruino uno and get this error
Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Uno"

In file included from C:\Users\arman\Downloads\Mello\Mello.ino:4:0:

C:\Users\arman\OneDrive\Documents\Arduino\libraries\FastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.005

pragma message "FastLED version 3.001.005"

^

Sketch uses 4564 bytes (14%) of program storage space. Maximum is 32256 bytes.
Global variables use 3328 bytes (162%) of dynamic memory, leaving -1280 bytes for local variables. Maximum is 2048 bytes.
Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Mello.ino (7.95 KB)

XY table takes 1300 bytes by itself. Making it a uint_8 will cut that in half.

I don't know how big the CGRB object is, but you are creating 650 of them!

UNO only has 2K bytes of RAM.

Get a 1284 Bobuino board.
16K SRAM

.

KeithRB:
I don't know how big the CGRB object is, but you are creating 650 of them!

3 bytes each (just a byte for each color). So that alone already barely fit...

More SRAM, 16KB (16384 bytes), solves lots of problems :slight_smile:
http://www.crossroadsfencing.com/BobuinoRev17/


Other form factors are also available.