RGB matrix example code
Moderators: adafruit_support_bill, adafruit

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: 6
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?
User avatar
adafruit
 
Posts: 11740
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?
User avatar
adafruit
 
Posts: 11740
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: 6
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.
User avatar
pburgess
 
Posts: 2734
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: 6
Joined: Thu Dec 08, 2011 6:35 pm