Re: Problem compiling example 8x8 LED matrix backpack sketch

by Dr_ukendermen on Sun Nov 03, 2013 3:32 pm

Now, before I get started I want to tell you that I am not the best a at programming.
I tried to upload *matrix8x8* to am arduino Uno ,but got hit by a brick wall which seems impenetrable.
I installed the Adafruit_gfx and Adafruit_Ledbackpack libraries but when I tried to open the matrix8x8 sketch and verified it it threw many errors at me! (16!)
I read through the previous comments but to no to a vale did I fix the problem.
I tried the libraries at this post ,but the same bug occurred.
Here is the console log.


matrix8x8.ino:23:34: error: Adafruit_LEDBackpack.h: No such file or directory
matrix8x8:26: error: 'Adafruit_8x8matrix' does not name a type
matrix8x8.ino: In function 'void setup()':
matrix8x8:32: error: 'matrix' was not declared in this scope
matrix8x8.ino: In function 'void loop()':
matrix8x8:65: error: 'matrix' was not declared in this scope
matrix8x8:66: error: 'LED_ON' was not declared in this scope

Please help me, I need to do this for school.
---Dr_ukendermen :D
Dr_ukendermen
 
Posts: 3
Joined: Sun Nov 03, 2013 3:22 pm

Re: Problem compiling example 8x8 LED matrix backpack sketch

by adafruit_support_rick on Mon Nov 04, 2013 4:16 am

You don't have the libraries installed correctly. Please review our tutorial on installing libraries.
http://learn.adafruit.com/adafruit-all- ... nstall-use

Also note that you have to restart the IDE after installing a library. Otherwise, the IDE will not recognize it.
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Problem compiling example 8x8 LED matrix backpack sketch

by Dr_ukendermen on Mon Nov 04, 2013 10:56 am

adafruit_support_rick wrote:You don't have the libraries installed correctly. Please review our tutorial on installing libraries.
http://learn.adafruit.com/adafruit-all- ... nstall-use

Also note that you have to restart the IDE after installing a library. Otherwise, the IDE will not recognize it.

I did follow the tutorial ,and Restarted the IDE. I followed the tutorail straight on ,but now it's even worse.
Here is the console log:

In file included from matrix8x8.ino:23:
C:\Users\Admin\Documents\Arduino\libraries\Adafruit_LEDBackpack/Adafruit_LEDBackpack.h:32:26: error: Adafruit_GFX.h: No such file or directory
In file included from matrix8x8.ino:23:
C:\Users\Admin\Documents\Arduino\libraries\Adafruit_LEDBackpack/Adafruit_LEDBackpack.h:72: error: expected class-name before '{' token
C:\Users\Admin\Documents\Arduino\libraries\Adafruit_LEDBackpack/Adafruit_LEDBackpack.h:81: error: expected class-name before '{' token
matrix8x8.ino: In function 'void loop()':
matrix8x8:66: error: 'class Adafruit_8x8matrix' has no member named 'drawBitmap'
matrix8x8:71: error: 'class Adafruit_8x8matrix' has no member named 'drawBitmap'
matrix8x8:76: error: 'class Adafruit_8x8matrix' has no member named 'drawBitmap'
matrix8x8:86: error: 'class Adafruit_8x8matrix' has no member named 'drawLine'
matrix8x8:91: error: 'class Adafruit_8x8matrix' has no member named 'drawRect'
matrix8x8:92: error: 'class Adafruit_8x8matrix' has no member named 'fillRect'
matrix8x8:97: error: 'class Adafruit_8x8matrix' has no member named 'drawCircle'
matrix8x8:101: error: 'class Adafruit_8x8matrix' has no member named 'setTextSize'
matrix8x8:102: error: 'class Adafruit_8x8matrix' has no member named 'setTextWrap'
matrix8x8:103: error: 'class Adafruit_8x8matrix' has no member named 'setTextColor'
matrix8x8:106: error: 'class Adafruit_8x8matrix' has no member named 'setCursor'
matrix8x8:107: error: 'class Adafruit_8x8matrix' has no member named 'print'
matrix8x8:111: error: 'class Adafruit_8x8matrix' has no member named 'setRotation'
matrix8x8:114: error: 'class Adafruit_8x8matrix' has no member named 'setCursor'
matrix8x8:115: error: 'class Adafruit_8x8matrix' has no member named 'print'
Dr_ukendermen
 
Posts: 3
Joined: Sun Nov 03, 2013 3:22 pm

Re: Problem compiling example 8x8 LED matrix backpack sketch

by pburgess on Mon Nov 04, 2013 1:09 pm

Looks like you have the matrix library properly installed, but not the GFX library yet. Make sure you follow the same installation process (confirming folder names & locations, etc.) for the latter library.
User avatar
pburgess
 
Posts: 2192
Joined: Sun Oct 26, 2008 1:29 am

Re: Problem compiling example 8x8 LED matrix backpack sketch

by Dr_ukendermen on Mon Nov 04, 2013 6:00 pm

Thanks Guys! It's working great!
Dr_ukendermen
 
Posts: 3
Joined: Sun Nov 03, 2013 3:22 pm

Re: Problem compiling example 8x8 LED matrix backpack sketch

by Pfiff on Mon Feb 10, 2014 10:30 am

Same problem, differned user...

Hi there, I've installed GFX and LEDBackpack for my Adafruit Bi-Color 8x8 Matrix librarys like:

Code: Select all
pfiff@Computersname:~/Arbeitsfläche/arduino-1.0.5/libraries$ git clone https://github.com/adafruit/Adafruit-LED-Backpack-Library
Cloning into 'Adafruit-LED-Backpack-Library'...
remote: Reusing existing pack: 110, done.
remote: Total 110 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (110/110), 68.74 KiB, done.
Resolving deltas: 100% (42/42), done.
pfiff@Computersname:~/Arbeitsfläche/arduino-1.0.5/libraries$ git clone https://github.com/adafruit/Adafruit-GFX-Library
Cloning into 'Adafruit-GFX-Library'...
remote: Reusing existing pack: 78, done.
remote: Total 78 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (78/78), done.
pfiff@Computersname:~/Arbeitsfläche/arduino-1.0.5/libraries$ mv ./Adafruit-GFX-Library/ ./Adafruit_GFX
pfiff@Computersname:~/Arbeitsfläche/arduino-1.0.5/libraries$ mv ./Adafruit-LED-Backpack-Library/ ./Adafruit_LEDBackpack
pfiff@Computersname:~/Arbeitsfläche/arduino-1.0.5/libraries$


now ir run Arduino 1.0.5 sketch with sudo privilegs.

when I load the Adafuit 8x8 Bi Color example and start compiling it, I get the following errors:

/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp: In constructor ‘Adafruit_8x8matrix::Adafruit_8x8matrix()’:
/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:97: error: no matching function for call to ‘Adafruit_GFX::Adafruit_GFX(int, int)’
/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Robot_Control/Adafruit_GFX.h:41: note: Adafruit_GFX::Adafruit_GFX()
/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp: In constructor ‘Adafruit_BicolorMatrix::Adafruit_BicolorMatrix()’:
/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:133: error: no matching function for call to ‘Adafruit_GFX::Adafruit_GFX(int, int)’
/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/home/pfiff/Arbeitsfläche/arduino-1.0.5/libraries/Robot_Control/Adafruit_GFX.h:41: note: Adafruit_GFX::Adafruit_GFX()


I've also downloaded the librarys as ZIP file an installed it manualy, some problem. And I have done it for more than one time.

Whats wrong?

Best Regards
Pfiff
Pfiff
 
Posts: 3
Joined: Mon Feb 10, 2014 10:19 am
Location: Uelzen / Lower Saxony / Germany

Re: Problem compiling example 8x8 LED matrix backpack sketch

by adafruit_support_rick on Mon Feb 10, 2014 11:35 am

You have to rename the library folders to replace the '-' characters with '_'. For instance "Adafruit_GFX" and "Adafruit_LED_Backpack"
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Problem compiling example 8x8 LED matrix backpack sketch

by Pfiff on Mon Feb 10, 2014 12:09 pm

adafruit_support_rick wrote:You have to rename the library folders to replace the '-' characters with '_'. For instance "Adafruit_GFX" and "Adafruit_LED_Backpack"

Have I already done...

I tried it with "Adafruit_LED_Backpack" and "Adafruit_LEDBackpack"
same problem...

my library folder looks like:
Code: Select all
pfiff@Computersname:~/Arbeitsfläche/arduino-1.0.5/libraries$ ls
Adafruit_GFX           Adafruit_PWM_ServoDriver  Ethernet     LiquidCrystal  Servo           TFT
Adafruit_LED_Backpack  AFMotorShield             Firmata      Robot_Control  SoftwareSerial  WiFi
Adafruit_MPL115A2      EEPROM                    GSM          Robot_Motor    SPI             Wire
Adafruit_NeoPixel      Esplora                   keypad_1602  SD             Stepper
Pfiff
 
Posts: 3
Joined: Mon Feb 10, 2014 10:19 am
Location: Uelzen / Lower Saxony / Germany

Re: Problem compiling example 8x8 LED matrix backpack sketch

by adafruit_support_rick on Mon Feb 10, 2014 5:34 pm

Ah, you have installed your libraries in the wrong location. You have installed them in the system libraries folder. That is not correct.
You must create a new folder, called "libraries", in your sketchbook folder.
You can find the path to your sketchbook folder by opening the "Preferences" dialog in the Arduino IDE.
Please see this page for details:
http://learn.adafruit.com/adafruit-all- ... -a-library
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Problem compiling example 8x8 LED matrix backpack sketch

by Pfiff on Tue Feb 11, 2014 4:12 am

adafruit_support_rick wrote:Ah, you have installed your libraries in the wrong location. You have installed them in the system libraries folder. That is not correct.
You must create a new folder, called "libraries", in your sketchbook folder.
You can find the path to your sketchbook folder by opening the "Preferences" dialog in the Arduino IDE.
Please see this page for details:
http://learn.adafruit.com/adafruit-all- ... -a-library



Thank you, this solved my problem...
Pfiff
 
Posts: 3
Joined: Mon Feb 10, 2014 10:19 am
Location: Uelzen / Lower Saxony / Germany