16x32 RGB LED Matrix gamma error

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
wck
 
Posts: 2
Joined: Wed Aug 21, 2013 11:46 pm

16x32 RGB LED Matrix gamma error

Post by wck »

Hi! I just got the 16x32 RGB LED matrix. I also downloaded both of the appropriate libraries from github and loaded the test_colors16x32 code into arduino. When I compile, however, I get these errors:

Code: Select all

sketchbook/libraries/RGBmatrixPanel/gamma.h:6:16: error: ‘prog_uchar’ does not name a type

sketchbook/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp: In member function ‘uint16_t RGBmatrixPanel::Color888(uint8_t, uint8_t, uint8_t, boolean)’:

sketchbook/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:209:9: error: ‘gamma’ was not declared in this scope
etc.

It seems the gamma table is not being recognized. How can I fix this?

User avatar
hiduino
 
Posts: 862
Joined: Sat Sep 01, 2012 7:05 pm

Re: 16x32 RGB LED Matrix gamma error

Post by hiduino »

Yes, you are using a modified Arduino IDE. You replaced your avr toolchain with a newer version that has different support for progmem variables.

You will need to change back to an older avr toolchain or you could modify the gamma.h file as follows.

In gamma.h change this line:

Code: Select all

static PROGMEM prog_uchar gamma[] = {
to

Code: Select all

static PROGMEM const unsigned char gamma[] = {

User avatar
wck
 
Posts: 2
Joined: Wed Aug 21, 2013 11:46 pm

Re: 16x32 RGB LED Matrix gamma error

Post by wck »

Perfect! After making the change to gamma.h it now compiles. Thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”