I’m having a similar issue as Inventor Steve. I’m trying to use the SSD1306 128x64 display and have copied in my Particle IDE tabs:
ssd1306-128x64-i2c.ino
Adafruit_GFX.h
Adafruit_GFX.cpp
Adafruit_SSD1306.h
Adafruit_SSD1306.cpp
I have coped the code directly to these tabs without changing anything and I’m having the following errors and not sure what to do at this point. I have seen the other post pertaining to the SSD1306 but can’t make sense of how it might apply to my errors.
Adafruit_GFX.cpp:37: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.h:4,
from 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 function `Adafruit_GFX::invertDisplay(bool)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawFastVLine(short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawFastHLine(short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::fillRect(short, short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::fillScreen(unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::invertDisplay(bool)':
Adafruit_SSD1306/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 function `Adafruit_GFX::Adafruit_GFX(short, short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::Adafruit_GFX(short, short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawCircle(short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawCircleHelper(short, short, short, unsigned char, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::fillCircleHelper(short, short, short, unsigned char, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::fillCircle(short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawRoundRect(short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::fillRoundRect(short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawTriangle(short, short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::fillTriangle(short, short, short, short, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawBitmap(short, short, unsigned char const*, short, short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::drawChar(short, short, unsigned char, unsigned short, unsigned short, unsigned char)':
Adafruit_SSD1306/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 function `Adafruit_GFX::write(unsigned char)':
Adafruit_SSD1306/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 function `Adafruit_GFX::setCursor(short, short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::setTextSize(unsigned char)':
Adafruit_SSD1306/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 function `Adafruit_GFX::setTextColor(unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::setTextColor(unsigned short, unsigned short)':
Adafruit_SSD1306/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 function `Adafruit_GFX::setTextWrap(bool)':
Adafruit_SSD1306/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 function `Adafruit_GFX::getRotation()':
Adafruit_SSD1306/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 function `Adafruit_GFX::setRotation(unsigned char)':
Adafruit_SSD1306/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 function `Adafruit_GFX::width()':
Adafruit_SSD1306/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 function `Adafruit_GFX::height()':
Adafruit_SSD1306/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 of `vtable 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_SSD1306.o): In function `Adafruit_SSD1306::stopscroll()':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:459: multiple definition of `Adafruit_SSD1306::drawFastHLine(short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:460: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::drawFastHLineInternal(short, short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:528: multiple definition of `Adafruit_SSD1306::drawFastVLine(short, short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:529: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::drawPixel(short, short, unsigned short)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:96: multiple definition of `Adafruit_SSD1306::drawPixel(short, short, unsigned short)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:97: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char, signed char, signed char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:124: multiple definition of `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char, signed char, signed char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:125: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char, signed char, signed char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:124: multiple definition of `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char, signed char, signed char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:125: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:134: multiple definition of `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:135: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:134: multiple definition of `Adafruit_SSD1306::Adafruit_SSD1306(signed char, signed char, signed char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:135: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::Adafruit_SSD1306(signed char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:142: multiple definition of `Adafruit_SSD1306::Adafruit_SSD1306(signed char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:143: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::Adafruit_SSD1306(signed char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:142: multiple definition of `Adafruit_SSD1306::Adafruit_SSD1306(signed char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:143: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::ssd1306_command(unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:272: multiple definition of `Adafruit_SSD1306::ssd1306_command(unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:273: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::begin(unsigned char, unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:149: multiple definition of `Adafruit_SSD1306::begin(unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:150: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::invertDisplay(unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:265: multiple definition of `Adafruit_SSD1306::invertDisplay(unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:266: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::startscrollright(unsigned char, unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:297: multiple definition of `Adafruit_SSD1306::startscrollright(unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:298: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::startscrollleft(unsigned char, unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:312: multiple definition of `Adafruit_SSD1306::startscrollleft(unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:313: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::startscrolldiagright(unsigned char, unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:327: multiple definition of `Adafruit_SSD1306::startscrolldiagright(unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:328: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::startscrolldiagleft(unsigned char, unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:344: multiple definition of `Adafruit_SSD1306::startscrolldiagleft(unsigned char, unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:345: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::stopscroll()':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:358: multiple definition of `Adafruit_SSD1306::stopscroll()'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:359: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::dim(bool)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:364: multiple definition of `Adafruit_SSD1306::dim(bool)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:365: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::ssd1306_data(unsigned char)':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:382: multiple definition of `Adafruit_SSD1306::ssd1306_data(unsigned char)'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:383: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::display()':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:403: multiple definition of `Adafruit_SSD1306::display()'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:404: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o): In function `Adafruit_SSD1306::clearDisplay()':
Adafruit_SSD1306/Adafruit_SSD1306.cpp:446: multiple definition of `Adafruit_SSD1306::clearDisplay()'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):Adafruit_SSD1306.cpp:447: first defined here
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):(.rodata._ZTV16Adafruit_SSD1306+0x0): multiple definition of `vtable for Adafruit_SSD1306'
../../../build/target/user/platform-6/libuser.a(Adafruit_SSD1306.o):(.rodata._ZTV16Adafruit_SSD1306+0x0): first defined here
../../../build/target/wiring/platform-6-m//libwiring.a(spark_wiring_random.o): In function `randomSeed(unsigned int)':
/mnt/compile-service-shared-workspace/6_platform_6_20_4/firmware/wiring/src/spark_wiring_random.cpp:5: multiple definition of `random(int)'
../../../build/target/user/platform-6/libuser.a(ssd1306_128x64_i2c.o):ssd1306_128x64_i2c.cpp:33: first defined here
collect2: error: ld returned 1 exit status
make: *** [b3f40aec0d6a68a783957755ef8289493bd84e3dbb18511c0352fff7059e.elf] Error 1