32x16 RGB LED Matrix code

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

Moderators: adafruit_support_bill, adafruit

32x16 RGB LED Matrix code

Postby belextronix » Wed May 09, 2012 1:50 pm

Hi i bought a 32x16 RGB LED Matrix now i am testing it but i can't get the code uploaded to my arduino.

I get following error in example testcolors_16x32

Code: Select all
testcolors_16x32.cpp:5:53: error: Adafruit_GFX.h: No such file or directory
In file included from testcolors_16x32.cpp:6:
C:\Users\Stijn\Desktop\arduino-1.0\libraries\RGBmatrixPanel/RGBmatrixPanel.h:9: error: expected class-name before '{' token


Following error in example testshapes_16x32

Code: Select all
testshapes_16x32.cpp:5:53: error: Adafruit_GFX.h: No such file or directory
In file included from testshapes_16x32.cpp:6:
C:\Users\Stijn\Desktop\arduino-1.0\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'


Please help

I am using arduino 1.0
belextronix
 
Posts: 4
Joined: Fri Dec 02, 2011 12:44 pm

Re: 32x16 RGB LED Matrix code

Postby pburgess » Wed May 09, 2012 3:00 pm

Hello,

There's a second Arduino library that also needs to be installed for this: https://github.com/adafruit/Adafruit-GFX-Library

I'm updating the tutorial right now. Apologies for the oversight!
User avatar
pburgess
 
Posts: 1343
Joined: Sun Oct 26, 2008 1:29 am

Re: 32x16 RGB LED Matrix code

Postby belextronix » Thu May 10, 2012 1:30 am

Thank you for the fast reply

It works!
belextronix
 
Posts: 4
Joined: Fri Dec 02, 2011 12:44 pm

Re: 32x16 RGB LED Matrix code

Postby belextronix » Thu May 10, 2012 9:25 am

How can i change text speed?

I also have 4 white lines 2 on top and 2 in the middle
belextronix
 
Posts: 4
Joined: Fri Dec 02, 2011 12:44 pm

Re: 32x16 RGB LED Matrix code

Postby pburgess » Thu May 10, 2012 6:49 pm

Howdy,

Regarding text speed: is this in the "scrolltext_16x32" sketch? As written, it's currently moving the text at full tilt, one pixel per frame. If you need something slower, easiest is just to add a short delay at the end of the loop() function, e.g.: delay(100);

If you need faster, best route would be to move it more than one pixel, e.g. change line 65 to:
Code: Select all
  if((textX -= 2) < textMin) textX = matrix.width();


As for the two white lines: I just encountered something similar today with a freshly-unwrapped RGB matrix, and it turned out to have been a problem with the ribbon cable. Let me see what I can do about getting a replacement to you...
User avatar
pburgess
 
Posts: 1343
Joined: Sun Oct 26, 2008 1:29 am

Re: 32x16 RGB LED Matrix code

Postby belextronix » Sat May 12, 2012 2:27 am

Thank you for the help and support.
belextronix
 
Posts: 4
Joined: Fri Dec 02, 2011 12:44 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]