There is no USPS pickup on Monday Feb 15th, 2016 because of President's Day. USPS orders placed after 11am EST Fri February 12th will go out Tuesday February 16. UPS orders will ship as normal.

RGB matrix example code
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

RGB matrix example code

by charxian on Thu Feb 21, 2013 1:28 pm

i can't get the example codes for the RGBmatrixPanel to compile. This is the error msg I get in the IDE
[quote]In file included from testcolors_16x32.cpp:6:
C:\Users\Charlene\Desktop\arduino-1.0.1\libraries\RGBmatrixPanel/RGBmatrixPanel.h:9: error: expected class-name before '{' token[code]
Thanks

charxian
 
Posts: 7
Joined: Thu Dec 08, 2011 6:35 pm

Re: RGB matrix example code

by adafruit on Thu Feb 21, 2013 1:29 pm

Did you install the Adafruit GFX library?

adafruit
 
Posts: 12047
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: RGB matrix example code

by adafruit on Thu Feb 21, 2013 1:29 pm

Did you install the Adafruit GFX library?

adafruit
 
Posts: 12047
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: RGB matrix example code

by charxian on Thu Feb 21, 2013 1:51 pm

Yes I did. I also tried the test shapes example and got this error msg when I tried to compile:
Code: Select all | TOGGLE FULL SIZE


In file included from testshapes_16x32.cpp:6:
C:\Users\Charlene\Desktop\arduino-1.0.1\libraries\RGBmatrixPanel/RGBmatrixPanel.h:9: error: expected class-name before '{' token
testshapes_16x32.cpp: In function 'void setup()':
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'fillRect'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'drawRect'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'drawLine'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'drawLine'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'drawCircle'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'fillCircle'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setCursor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextSize'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setCursor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'setTextColor'
testshapes_16x32.pde:-1: error: 'class RGBmatrixPanel' has no member named 'print'

I am probably overlooking something really basic :|

charxian
 
Posts: 7
Joined: Thu Dec 08, 2011 6:35 pm

Re: RGB matrix example code

by pburgess on Thu Feb 21, 2013 4:38 pm

Still looks like trouble finding the Adafruit_GFX library. Make sure it's properly named and capitalized (and with the underscore), and that the folder's not double-nested inside there.

pburgess
 
Posts: 3367
Joined: Sun Oct 26, 2008 2:29 am

Re: RGB matrix example code

by charxian on Thu Feb 21, 2013 4:45 pm

Thanks, that's what I had done wrong. Knew it was something silly! I'm blaming it on the weather.

charxian
 
Posts: 7
Joined: Thu Dec 08, 2011 6:35 pm

Please be positive and constructive with your questions and comments.