RGB matrix example code

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

Moderators: adafruit_support_bill, adafruit

RGB matrix example code

Postby Charxian » Thu Feb 21, 2013 12: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: 4
Joined: Thu Dec 08, 2011 5:35 pm

Re: RGB matrix example code

Postby adafruit » Thu Feb 21, 2013 12:29 pm

Did you install the Adafruit GFX library?
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: RGB matrix example code

Postby adafruit » Thu Feb 21, 2013 12:29 pm

Did you install the Adafruit GFX library?
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: RGB matrix example code

Postby Charxian » Thu Feb 21, 2013 12: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


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: 4
Joined: Thu Dec 08, 2011 5:35 pm

Re: RGB matrix example code

Postby pburgess » Thu Feb 21, 2013 3: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: 1343
Joined: Sun Oct 26, 2008 1:29 am

Re: RGB matrix example code

Postby Charxian » Thu Feb 21, 2013 3:45 pm

Thanks, that's what I had done wrong. Knew it was something silly! I'm blaming it on the weather.
Charxian
 
Posts: 4
Joined: Thu Dec 08, 2011 5:35 pm


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

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]