Hallo,
I try to understand in wich way the Library for Adafruit_SSD1306.h was create. There are some statemates that I do not understand. I hope some can explain this.
in rAdafruit_SSD1306.h there will be the definitions. Why i need both definitions of "B4RAdafruitGFX"
in rAdafruit_SSD1306.cpp is the function definition of init(): The "gfx" Object have no gfx method, what the meanning of.
And why I have to assign the ssd Object to gfx. In the Arduino code the constructor of "Adafruit_SSD1306" get a gfx Object
I try to understand in wich way the Library for Adafruit_SSD1306.h was create. There are some statemates that I do not understand. I hope some can explain this.
in rAdafruit_SSD1306.h there will be the definitions. Why i need both definitions of "B4RAdafruitGFX"
B4X:
private:
...
Adafruit_SSD1306* ssd;
B4RAdafruitGFX gfx;
public:
B4RAdafruitGFX* GFX;
in rAdafruit_SSD1306.cpp is the function definition of init(): The "gfx" Object have no gfx method, what the meanning of.
And why I have to assign the ssd Object to gfx. In the Arduino code the constructor of "Adafruit_SSD1306" get a gfx Object
B4X:
void B4RAdafruitSSD1306::init() {
gfx.gfx = ssd;
GFX = &gfx;
ssd->setTextColor(WHITE);
}