I am trying to compile the example sketch for the Adafruit Small 1.2" 8x8 LED Matrix w/I2C Backpack - Red.
I have downloaded the example and library from GIT. I renamed the directory to Adafruit_LEDBackpack. It shows up in the Arduino IDE as expected.
I also downloaded the Adafruit GFX library and renamed the directory Adafruit_GFX as instructed.
However, when I try to compile the sketch, I get the following errors:
Code: Select all
/home/greg/Arduino/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp: In constructor ‘Adafruit_8x8matrix::Adafruit_8x8matrix()’:
/home/greg/Arduino/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:92: error: no matching function for call to ‘Adafruit_GFX::Adafruit_GFX()’
/home/greg/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:17: note: candidates are: Adafruit_GFX::Adafruit_GFX(int16_t, int16_t)
/home/greg/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:13: note: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/home/greg/Arduino/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:93: error: ‘constructor’ was not declared in this scope
/home/greg/Arduino/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp: In constructor ‘Adafruit_BicolorMatrix::Adafruit_BicolorMatrix()’:
/home/greg/Arduino/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:129: error: no matching function for call to ‘Adafruit_GFX::Adafruit_GFX()’
/home/greg/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:17: note: candidates are: Adafruit_GFX::Adafruit_GFX(int16_t, int16_t)
/home/greg/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:13: note: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/home/greg/Arduino/libraries/Adafruit_LEDBackpack/Adafruit_LEDBackpack.cpp:130: error: ‘constructor’ was not declared in this scope
I am excited to get this Adafruit product working, so I hope someone can tell me where I went wrong, or what I should try next.