# 0.96 Inch 4Pin White IIC I2C OLED Display For Arduino

**URL:** <https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004>\
**Category:** Hardware Interfacing Questions\
**Created:** [December 4, 2019, 12:06pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004 "2019-12-04T12:06:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 4, 2019, 12:06pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/1 "2019-12-04T12:06:53Z")

</div>

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 … thanks ![s-l300](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/f/f16e5074f9262ace3d67c0649ea8f29632d2ac1d.jpeg)

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [December 4, 2019, 1:12pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/2 "2019-12-04T13:12:16Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![9nix6](https://avatars.discourse-cdn.com/v4/letter/9/6de8d8/32.png) [@9nix6](https://forum.xod.io/u/9nix6)\
**Post date:** [December 4, 2019, 8:54pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/3 "2019-12-04T20:54:45Z")

</div>

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:

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [December 5, 2019, 10:33am UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/4 "2019-12-05T10:33:20Z")

</div>

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](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/1/1232ad221a5ca7886b6e2e80846b6933682aec08.png)

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.

---

<div class="post-metadata">

**Author:** ![9nix6](https://avatars.discourse-cdn.com/v4/letter/9/6de8d8/32.png) [@9nix6](https://forum.xod.io/u/9nix6)\
**Post date:** [December 5, 2019, 11:31am UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/5 "2019-12-05T11:31:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 5, 2019, 12:06pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/6 "2019-12-05T12:06:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 6, 2019, 12:33pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/7 "2019-12-06T12:33:49Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 6, 2019, 12:34pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/8 "2019-12-06T12:34:12Z")

</div>

![s-l300](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/f/f16e5074f9262ace3d67c0649ea8f29632d2ac1d.jpeg)

 ![20191206_132559](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/0/09eff35a6b7d9bedf6774894ede9ea8f0ed467d2.jpeg) ![20191206_132608](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/8/805d2ebd349c1704864da01bb9f8945dd2759f19.jpeg)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 6, 2019, 12:47pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/9 "2019-12-06T12:47:21Z")

</div>

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.

> [@Sensors and OLED SSD1306 128\*32](https://forum.xod.io/t/sensors-and-oled-ssd1306-128-32/2025):
>
> Here is another test of OLED SSD1306, with a graph of values. Place some nodes in the graphic patch to reduce the main [Sensor-SSD1306-128x32.xodball](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/1/17f2f0b5d0cbbffe6df8652189bc584c3b78cfe2.xodball) (38.1 KB) [1] [2]

---

<div class="post-metadata">

**Author:** ![uther2017](https://avatars.discourse-cdn.com/v4/letter/u/e19adc/32.png) [@uther2017](https://forum.xod.io/u/uther2017)\
**Post date:** [December 6, 2019, 1:47pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/10 "2019-12-06T13:47:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 6, 2019, 2:20pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/11 "2019-12-06T14:20:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![uther2017](https://avatars.discourse-cdn.com/v4/letter/u/e19adc/32.png) [@uther2017](https://forum.xod.io/u/uther2017)\
**Post date:** [December 6, 2019, 2:37pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/12 "2019-12-06T14:37:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 6, 2019, 2:58pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/13 "2019-12-06T14:58:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 6, 2019, 3:43pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/14 "2019-12-06T15:43:25Z")

</div>

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

 ![aa](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/b/b387e66dbfcd0ba98ef1ceb156ed8f95f40ceb83.png)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [December 6, 2019, 4:16pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/15 "2019-12-06T16:16:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 6, 2019, 4:22pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/16 "2019-12-06T16:22:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [December 6, 2019, 4:57pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/17 "2019-12-06T16:57:26Z")

</div>

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.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/2/2402e3021cd19d9ad537196d4791ba3cfbed996e.png)

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 6, 2019, 7:17pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/18 "2019-12-06T19:17:20Z")

</div>

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 …

---

<div class="post-metadata">

**Author:** ![uther2017](https://avatars.discourse-cdn.com/v4/letter/u/e19adc/32.png) [@uther2017](https://forum.xod.io/u/uther2017)\
**Post date:** [December 6, 2019, 7:23pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/19 "2019-12-06T19:23:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![apsolucija](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@apsolucija](https://forum.xod.io/u/apsolucija)\
**Post date:** [December 6, 2019, 7:41pm UTC](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004/20 "2019-12-06T19:41:07Z")

</div>

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

[Next page](https://forum.xod.io/t/0-96-inch-4pin-white-iic-i2c-oled-display-for-arduino/3004.md?page=2)
