Skip to content

Loading…

Adafruit-GFX-Library - Possible solution for Adafruit_GFX constructor-related link issue #3

Closed
wants to merge 1 commit into from

3 participants

@christianpatterson

Invoke the Adafruit_GFX constructor from the member initialization
list so that the arguments can be passed.

@christianpatterson christianpatterson Fix Adafruit_GFX constructor-related link issue
Invoke the Adafruit_GFX constructor from the member initialization
list so that the arguments can be passed.
0bde971
@remcoder

I had the same compile error with Arduino 1.0.5 and my Uno. This fix works. It should be merged.

@tdicola

Thanks for raising the issue and suggesting the fix. It looks like this was resolved with a later commit: 8667289 Apologies it took a few years to review this issue, but I'll close it now since the fix was made. Thanks!

@tdicola tdicola closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 18, 2012
  1. @christianpatterson

    Fix Adafruit_GFX constructor-related link issue

    christianpatterson committed
    Invoke the Adafruit_GFX constructor from the member initialization
    list so that the arguments can be passed.
Showing with 4 additions and 4 deletions.
  1. +4 −4 Adafruit_LEDBackpack.cpp
View
8 Adafruit_LEDBackpack.cpp
@@ -89,8 +89,8 @@ void Adafruit_LEDBackpack::clear(void) {
}
}
-Adafruit_8x8matrix::Adafruit_8x8matrix(void) {
- constructor(8, 8);
+Adafruit_8x8matrix::Adafruit_8x8matrix(void) :
+ Adafruit_GFX(8, 8) {
}
void Adafruit_8x8matrix::drawPixel(int16_t x, int16_t y, uint16_t color) {
@@ -126,8 +126,8 @@ void Adafruit_8x8matrix::drawPixel(int16_t x, int16_t y, uint16_t color) {
}
-Adafruit_BicolorMatrix::Adafruit_BicolorMatrix(void) {
- constructor(8, 8);
+Adafruit_BicolorMatrix::Adafruit_BicolorMatrix(void) :
+ Adafruit_GFX(8, 8) {
}
void Adafruit_BicolorMatrix::drawPixel(int16_t x, int16_t y, uint16_t color) {
Something went wrong with that request. Please try again.