0.96 Inch 4Pin White IIC I2C OLED Display For Arduino

Greetings … does anyone know if they can hook up and run this little oled screen at all over XOD, and how could they have some tutorial on that … thankss-l300

If it has an SSD1306 display controller, you can use this library:
https://xod.io/libs/wayland/ssd1306-oled-i2c/

There are no tutorials at present, but there are example patches in the library.

1 Like

Hi, I’m new here and I’m generally new to XOD. Since my question is related to Wayland’s library I thought I would put my query here.

I’m trying to utilize the ssd1306 library with a smaller OLED display SSD1306 (128 x 32). Everytignseems to work fine (I can deploy the XOD logo example, draw circles, etc), except the “draw-text” patch.

Whenever I use the patch is a project or even if If I try to deploy “example-scroll” I get a linker error:

new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `operator new(unsigned int, void*)'
C:\Users\Artur\AppData\Local\Temp\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\sketch\xod_1575476339164_sketch.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Do you by any chance know why this is failing?
I’m deploying to an Arduino Nano v3 (atmega328p).

The entire compilation log looks like this:

Begin compiling code for the board Arduino Nano 📦


Using board 'nano' from platform in folder: C:\Users\Artur\xod\__packages__\packages\arduino\hardware\avr\1.8.2
Using core 'arduino' from platform in folder: C:\Users\Artur\xod\__packages__\packages\arduino\hardware\avr\1.8.2

Detecting libraries used...

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp" -o nul

Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp" -o nul

Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp" -o nul

Alternatives for Adafruit_GFX.h: [Adafruit_GFX_Library@1.6.1]
ResolveLibrary(Adafruit_GFX.h)
  -> candidates: [Adafruit_GFX_Library@1.6.1]

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp" -o nul

Alternatives for Adafruit_SSD1306.h: [Adafruit_SSD1306@2.0.2]
ResolveLibrary(Adafruit_SSD1306.h)
  -> candidates: [Adafruit_SSD1306@2.0.2]

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp" -o nul

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src\\SPI.cpp" -o nul

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src\\Wire.cpp" -o nul

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src\\utility\\twi.c" -o nul

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library\\Adafruit_GFX.cpp" -o nul

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library\\Adafruit_SPITFT.cpp" -o nul

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library\\glcdfont.c" -o nul

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306\\Adafruit_SSD1306.cpp" -o nul

Generating function prototypes...

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Users\\Artur\\xod\\__packages__\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp.o"

Compiling libraries...

Compiling library "SPI"

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src\\SPI.cpp" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\SPI\\SPI.cpp.o"

Compiling library "Wire"

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src\\Wire.cpp" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Wire\\Wire.cpp.o"

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src\\utility\\twi.c" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Wire\\utility\\twi.c.o"

Compiling library "Adafruit_GFX_Library"

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library\\glcdfont.c" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_GFX_Library\\glcdfont.c.o"

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library\\Adafruit_GFX.cpp" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_GFX_Library\\Adafruit_GFX.cpp.o"
"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library\\Adafruit_SPITFT.cpp" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_GFX_Library\\Adafruit_SPITFT.cpp.o"

Compiling library "Adafruit_SSD1306"

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\cores\\arduino" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\variants\\eightanaloginputs" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\SPI\\src" "-IC:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\hardware\\avr\\1.8.2\\libraries\\Wire\\src" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_GFX_Library" "-IC:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306" "C:\\Users\\Artur\\AppData\\Local\\Temp\\xod_temp_sketchbookEMgwvi\\libraries\\Adafruit_SSD1306\\Adafruit_SSD1306.cpp" -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_SSD1306\\Adafruit_SSD1306.cpp.o"

Compiling core...

Using precompiled core: C:\Users\Artur\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_nano_cpu_atmega328_9ef30bffb4bf90fbc9b96be97d66bed8.a
Linking everything together...

"C:\\Users\\Artur\\xod\\__packages__\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED/xod_1575476339164_sketch.ino.elf" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\sketch\\xod_1575476339164_sketch.ino.cpp.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_GFX_Library\\glcdfont.c.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_GFX_Library\\Adafruit_GFX.cpp.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_GFX_Library\\Adafruit_SPITFT.cpp.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\\libraries\\Adafruit_SSD1306\\Adafruit_SSD1306.cpp.o" "C:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED/..\\arduino-core-cache\\core_arduino_avr_nano_cpu_atmega328_9ef30bffb4bf90fbc9b96be97d66bed8.a" "-LC:\\Users\\Artur\\AppData\\Local\\Temp\\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED" -lm

new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `operator new(unsigned int, void*)'
C:\Users\Artur\AppData\Local\Temp\arduino-sketch-8DEEF1C69561191F7144D593949BD0ED\sketch\xod_1575476339164_sketch.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "Adafruit_GFX.h"
 Used: C:\Users\Artur\AppData\Local\Temp\xod_temp_sketchbookEMgwvi\libraries\Adafruit_GFX_Library
Multiple libraries were found for "Adafruit_SSD1306.h"
 Used: C:\Users\Artur\AppData\Local\Temp\xod_temp_sketchbookEMgwvi\libraries\Adafruit_SSD1306
Multiple libraries were found for "SPI.h"
 Used: C:\Users\Artur\xod\__packages__\packages\arduino\hardware\avr\1.8.2\libraries\SPI
Multiple libraries were found for "Wire.h"
 Used: C:\Users\Artur\xod\__packages__\packages\arduino\hardware\avr\1.8.2\libraries\Wire

Using library SPI at version 1.0 in folder: C:\Users\Artur\xod\__packages__\packages\arduino\hardware\avr\1.8.2\libraries\SPI 
Using library Wire at version 1.0 in folder: C:\Users\Artur\xod\__packages__\packages\arduino\hardware\avr\1.8.2\libraries\Wire 
Using library Adafruit_GFX_Library at version 1.6.1 in folder: C:\Users\Artur\AppData\Local\Temp\xod_temp_sketchbookEMgwvi\libraries\Adafruit_GFX_Library 
Using library Adafruit_SSD1306 at version 2.0.2 in folder: C:\Users\Artur\AppData\Local\Temp\xod_temp_sketchbookEMgwvi\libraries\Adafruit_SSD1306 

Error: exit status 1
Compilation failed.
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

Update: I tried copliling the code generated by XOD and deploing via Arduino IDE and all works correctly so most likely this is a bug in XOD.

Hi @9nix6 and welcome to the forum,

I’ve just replicated this issue on my mac, deploying to an Arduino Uno. My SSD1306 library was working fine in the latest version of XOD (0.32.0) until I ran “Upgrade Arduino Packages & Toolchains”

25

After upgrading Arduino AVR Boards from 1.8.1 to 1.8.2 I received the same error message that you did.

I was able to work around the problem by taking the following steps:

  1. closed XOD
  2. removed the following directory: /Users/matt/xod/__packages__
  3. restarted XOD (I was prompted to install Arduino AVR boards)

I haven’t got access to a windows machine, so I’ve no idea if this workaround will help you. I also don’t know where the xod/__packages__ directory is located on windows.

Unfortunately I don’t know enough about the toolchain to understand what the underlying problem might be.

Thank you for checking this. The solution did not work for me (on Windows), but it gave me the needed information regarding the origin of the problem.

I downgraded to Arduino AVR Boards v 1.8.1 by deleting:
C:/Users/xxxx/xod/__packages_/packages/arduino/hardware/1.8.2 folder
creating C:/Users/xxxx/xod/__packages_/packages/arduino/hardware/1.8.1
and copying the contents of the hardware/arduino/avr folder from Arduino IDE to the folder I created.

Maybe it will help someone who is having a similar problem.

BTW: Thank you for creating the OLED library.

ok Thanks…I’ll try it and let you know …

friends, can anyone help me with these displays, because I can’t print anything on one or the other, can you tell me exactly the procedure and how to print, say, text or anything. explain it to me amateurly…

s-l300

Some time ago I did these tests, currently the library I use is not published, but these examples can be useful with the original library.

You first have to place the oled device node on the screen. Next you have to initiate the device by placing the init node down. Now you clear the screen by placing the clear screen node down. Then you place down what you want on the screen. You can put down the draw text if want. Type what you want on the text option for the node. Now you’ll want to send it to the screen by the send to buffer node. Now you just need to link the nodes all together accordingly. You can look at the examples and see how they link together. Another thing to take note when looking at the example is to see how they are connected to the bus.

Can you send me file or screenshoot…thanks

maybe i dont connect properly, ground, 3.3v and sda to pin A4 and scl to pin A5? right?
And do I have to put some special library up there?
Do you have any visual example?

I’ve always connected mine to 5v but I’m not sure if that would make a difference or not. Looks like the connections are good. You do need to download a library though. Go to add library in xod and wayland/ssd1306-oled-i2c@0.0.4

U2 is an regulator de 5v to 3,3v, connect direct 5v

I just want to print plain simple text on the display,
what i must add…help

The library you are using has example nodes to demonstrate how to use it. example-scroll shows you how to draw text, then start scrolling it. You need to start by creating the device to feed to the DEV pin & initialize it using init node, then you can make sure the screen is clear & draw your text.

In case you don’t know, all the triangle nodes in the example are bus nodes. The top-left node creates the DEV for the display and sends it to the triangle pointing down and labelled DEV. All the triangles pointing up labelled DEV are just “copies” of that. Instead of having all the triangles, you could run wires directly, but that would leave wires crossing over a bunch of nodes & make things messier.

can you draw me an example of how to print plain text please, simple example?

As I stated before, the example is in the library. Many libraries have example nodes included to show you exactly how to use the library. Expand the library in the project browser to see all the nodes for the library, then double-click on the example nodes to open a new tab in the workspace to see what the node looks like. The top 5 nodes in example-scroll (everything above start-scroll) are what you need to display text.

I don’t know where to find triangles and I don’t know what they mean, and I don’t have the option of say example-scroll in the menu.
Can you give me a ready-made example of plain text that is functional for download please, for example, so then I’ll expose it a bit and understand better …
I know I may be boring but you are awesome and you can help me …

Search for “to bus” and “from bus” they are nodes. There should be an example-draw-text. If you find it drag it out and double click on the example node to open it up

what i got on the display is a bunch of dots that flash, i just need the simple text most easily connected to the lines and print me the text, if anyone knows let me make an example for download i’ll be very grateful … thanks