I start with a Google search and find this post on how to use an example from the Wed IDE Library
Use This Example
First off I notice that this library has red boxes for all Particle platforms. However, I see this post that says this issue has been solved. Adafruit SSD1306 [SOLVED]
Next I click on the "Use this Example" button.
On attempting to compile this application. I get an error stating that the comiler can't find the GFX library. So after 5 button clicks I got the Adafruit_GFX library added to the app.
Compiling this app now, yields this error message
adafruit_gfx.cpp:37:26: fatal error: Adafruit_GFX.h: No such file or directory
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
^
compilation terminated.
make1: *** [../build/target/user/platform-6adafruit_gfx.o] Error 1
make: *** [user] Error 2
So it looks like adding the GFX library manually added an extra include statement. (So maybe I'm doing this "Use Example" bit) wrong. So I remove the original include statement. Compiling the application this time yielded a bunch of compiler errors
adafruit_gfx.cpp:37:0: warning: "pgm_read_byte" redefined [enabled by default]
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
^
In file included from ../wiring/inc/spark_wiring.h:37:0,
from ./inc/application.h:36,
from adafruit_gfx.cpp:2:
../wiring/inc/spark_wiring_arduino.h:32:0: note: this is the location of the previous definition
#define pgm_read_byte(x) ((x))
^
Adafruit_GFX/Adafruit_GFX.cpp:36:0: warning: "pgm_read_byte" redefined [enabled by default]
#define pgm_read_byte(addr) ((const unsigned char )(addr))
^
In file included from ../wiring/inc/spark_wiring.h:37:0,
from ./inc/application.h:36,
from Adafruit_GFX/Adafruit_GFX.h:4,
from Adafruit_GFX/Adafruit_GFX.cpp:34:
../wiring/inc/spark_wiring_arduino.h:32:0: note: this is the location of the previous definition
#define pgm_read_byte(x) ((x))
^
Adafruit_SSD1306/Adafruit_GFX.cpp:36:0: warning: "pgm_read_byte" redefined [enabled by default]
#define pgm_read_byte(addr) ((const unsigned char )(addr))
^
In file included from ../wiring/inc/spark_wiring.h:37:0,
from ./inc/application.h:36,
from Adafruit_SSD1306/Adafruit_GFX.h:4,
from Adafruit_SSD1306/Adafruit_GFX.cpp:34:
../wiring/inc/spark_wiring_arduino.h:32:0: note: this is the location of the previous definition
#define pgm_read_byte(x) ((x))
^
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::invertDisplay(bool)': Adafruit_GFX/Adafruit_GFX.cpp:420: multiple definition of
Adafruit_GFX::drawLine(short, short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:421: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:462: multiple definition of
Adafruit_GFX::drawRect(short, short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:463: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawFastVLine(short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:470: multiple definition of
Adafruit_GFX::drawFastVLine(short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:471: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawFastHLine(short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:476: multiple definition of
Adafruit_GFX::drawFastHLine(short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:477: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::fillRect(short, short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:482: multiple definition of
Adafruit_GFX::fillRect(short, short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:483: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::fillScreen(unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:489: multiple definition of
Adafruit_GFX::fillScreen(unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:490: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::invertDisplay(bool)': Adafruit_GFX/Adafruit_GFX.cpp:727: multiple definition of
Adafruit_GFX::invertDisplay(bool)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:728: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::Adafruit_GFX(short, short)': Adafruit_GFX/Adafruit_GFX.cpp:297: multiple definition of
Adafruit_GFX::Adafruit_GFX(short, short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:298: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::Adafruit_GFX(short, short)': Adafruit_GFX/Adafruit_GFX.cpp:297: multiple definition of
Adafruit_GFX::Adafruit_GFX(short, short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:298: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawCircle(short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:311: multiple definition of
Adafruit_GFX::drawCircle(short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:312: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawCircleHelper(short, short, short, unsigned char, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:345: multiple definition of
Adafruit_GFX::drawCircleHelper(short, short, short, unsigned char, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:346: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::fillCircleHelper(short, short, short, unsigned char, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:388: multiple definition of
Adafruit_GFX::fillCircleHelper(short, short, short, unsigned char, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:389: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::fillCircle(short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:381: multiple definition of
Adafruit_GFX::fillCircle(short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:382: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:495: multiple definition of
Adafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:496: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::fillRoundRect(short, short, short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:510: multiple definition of
Adafruit_GFX::fillRoundRect(short, short, short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:511: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawTriangle(short, short, short, short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:522: multiple definition of
Adafruit_GFX::drawTriangle(short, short, short, short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:523: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::fillTriangle(short, short, short, short, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:531: multiple definition of
Adafruit_GFX::fillTriangle(short, short, short, short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:532: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawBitmap(short, short, unsigned char const*, short, short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:608: multiple definition of
Adafruit_GFX::drawBitmap(short, short, unsigned char const, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:609: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::drawChar(short, short, unsigned char, unsigned short, unsigned short, unsigned char)': Adafruit_GFX/Adafruit_GFX.cpp:641: multiple definition of
Adafruit_GFX::drawChar(short, short, unsigned char, unsigned short, unsigned short, unsigned char)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:642: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::write(unsigned char)': Adafruit_GFX/Adafruit_GFX.cpp:621: multiple definition of
Adafruit_GFX::write(unsigned char)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:622: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::setCursor(short, short)': Adafruit_GFX/Adafruit_GFX.cpp:675: multiple definition of
Adafruit_GFX::setCursor(short, short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:676: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::setTextSize(unsigned char)': Adafruit_GFX/Adafruit_GFX.cpp:680: multiple definition of
Adafruit_GFX::setTextSize(unsigned char)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:681: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::setTextColor(unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:686: multiple definition of
Adafruit_GFX::setTextColor(unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:687: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::setTextColor(unsigned short, unsigned short)': Adafruit_GFX/Adafruit_GFX.cpp:690: multiple definition of
Adafruit_GFX::setTextColor(unsigned short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:691: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::setTextWrap(bool)': Adafruit_GFX/Adafruit_GFX.cpp:695: multiple definition of
Adafruit_GFX::setTextWrap(bool)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:696: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::getRotation()': Adafruit_GFX/Adafruit_GFX.cpp:700: multiple definition of
Adafruit_GFX::getRotation()'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:701: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::setRotation(unsigned char)': Adafruit_GFX/Adafruit_GFX.cpp:703: multiple definition of
Adafruit_GFX::setRotation(unsigned char)'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:704: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::width()': Adafruit_GFX/Adafruit_GFX.cpp:721: multiple definition of
Adafruit_GFX::width()'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:722: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In functionAdafruit_GFX::height()': Adafruit_GFX/Adafruit_GFX.cpp:725: multiple definition of
Adafruit_GFX::height()'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:726: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o):(.rodata._ZTV12Adafruit_GFX+0x0): multiple definition ofvtable for Adafruit_GFX' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):(.rodata._ZTV12Adafruit_GFX+0x0): first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::invertDisplay(bool)':
Adafruit_SSD1306/Adafruit_GFX.cpp:420: multiple definition ofAdafruit_GFX::drawLine(short, short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:421: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:462: multiple definition ofAdafruit_GFX::drawRect(short, short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:463: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawFastVLine(short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:470: multiple definition ofAdafruit_GFX::drawFastVLine(short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:471: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawFastHLine(short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:476: multiple definition ofAdafruit_GFX::drawFastHLine(short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:477: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::fillRect(short, short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:482: multiple definition ofAdafruit_GFX::fillRect(short, short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:483: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::fillScreen(unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:489: multiple definition ofAdafruit_GFX::fillScreen(unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:490: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::invertDisplay(bool)':
Adafruit_SSD1306/Adafruit_GFX.cpp:727: multiple definition ofAdafruit_GFX::invertDisplay(bool)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:728: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::Adafruit_GFX(short, short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:297: multiple definition ofAdafruit_GFX::Adafruit_GFX(short, short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:298: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::Adafruit_GFX(short, short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:297: multiple definition ofAdafruit_GFX::Adafruit_GFX(short, short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:298: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawCircle(short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:311: multiple definition ofAdafruit_GFX::drawCircle(short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:312: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawCircleHelper(short, short, short, unsigned char, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:345: multiple definition ofAdafruit_GFX::drawCircleHelper(short, short, short, unsigned char, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:346: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::fillCircleHelper(short, short, short, unsigned char, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:388: multiple definition ofAdafruit_GFX::fillCircleHelper(short, short, short, unsigned char, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:389: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::fillCircle(short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:381: multiple definition ofAdafruit_GFX::fillCircle(short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:382: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:495: multiple definition ofAdafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:496: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::fillRoundRect(short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:510: multiple definition ofAdafruit_GFX::fillRoundRect(short, short, short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:511: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawTriangle(short, short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:522: multiple definition ofAdafruit_GFX::drawTriangle(short, short, short, short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:523: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::fillTriangle(short, short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:531: multiple definition ofAdafruit_GFX::fillTriangle(short, short, short, short, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:532: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawBitmap(short, short, unsigned char const*, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:608: multiple definition ofAdafruit_GFX::drawBitmap(short, short, unsigned char const*, short, short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:609: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::drawChar(short, short, unsigned char, unsigned short, unsigned short, unsigned char)':
Adafruit_SSD1306/Adafruit_GFX.cpp:641: multiple definition ofAdafruit_GFX::drawChar(short, short, unsigned char, unsigned short, unsigned short, unsigned char)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:642: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::write(unsigned char)':
Adafruit_SSD1306/Adafruit_GFX.cpp:621: multiple definition ofAdafruit_GFX::write(unsigned char)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:622: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::setCursor(short, short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:675: multiple definition ofAdafruit_GFX::setCursor(short, short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:676: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::setTextSize(unsigned char)':
Adafruit_SSD1306/Adafruit_GFX.cpp:680: multiple definition ofAdafruit_GFX::setTextSize(unsigned char)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:681: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::setTextColor(unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:686: multiple definition ofAdafruit_GFX::setTextColor(unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:687: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::setTextColor(unsigned short, unsigned short)':
Adafruit_SSD1306/Adafruit_GFX.cpp:690: multiple definition ofAdafruit_GFX::setTextColor(unsigned short, unsigned short)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:691: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::setTextWrap(bool)':
Adafruit_SSD1306/Adafruit_GFX.cpp:695: multiple definition ofAdafruit_GFX::setTextWrap(bool)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:696: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::getRotation()':
Adafruit_SSD1306/Adafruit_GFX.cpp:700: multiple definition ofAdafruit_GFX::getRotation()' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:701: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::setRotation(unsigned char)':
Adafruit_SSD1306/Adafruit_GFX.cpp:703: multiple definition ofAdafruit_GFX::setRotation(unsigned char)' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:704: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::width()':
Adafruit_SSD1306/Adafruit_GFX.cpp:721: multiple definition ofAdafruit_GFX::width()' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:722: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o): In function
Adafruit_GFX::height()':
Adafruit_SSD1306/Adafruit_GFX.cpp:725: multiple definition ofAdafruit_GFX::height()' ../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):adafruit_gfx.cpp:726: first defined here ../../../build/target/user/platform-6/libuser.a(Adafruit_GFX.o):(.rodata._ZTV12Adafruit_GFX+0x0): multiple definition of
vtable for Adafruit_GFX'
../../../build/target/user/platform-6/libuser.a(adafruit_gfx.o):(.rodata._ZTV12Adafruit_GFX+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [e0423145c1636a77b485fc7ae5fde698927e91d2a839d75219019b46cc71.elf] Error 1
I continued past this stage trying all sorts of things but with no luck.
I must be doing something wrong. However, I do feel the "Use this Example" should be a better experience. Also if the example I selected does in fact NOT work on any of the particle platforms. Why is it in the library?
Anyway, I'd appreciate any help on getting the SSD1306 OLED working on the Photon.
Thank you.