0.96 Inch 4Pin White IIC I2C OLED Display For Arduino

i don’t see the error, its just not working …

maybe i didn’t make the program well, do you have any download example? maybe i made a mistake in connecting because i didn’t do it before?


The display in the photo above is a text LCD and should be used with the following library:
https://xod.io/libs/xod-dev/text-lcd/

The displays below are OLED. However, it is possible that they do not use the SSD1306 display controller. My library only works with the SSD1306 controller.

the first -text LCD works fine, it’s all ok, but the second oled display interests me to drive it … I’m afraid and I’m wrong about the program and the connection. i need the simplest example of text printing if you have to download …? so then I go to the program

I deleted the —package— folder and it prompted to reinstall the boards like in your description. It failed to fix the issue though. I’m still getting a compilation error when trying to use the draw-text node. This is the error I’m getting.

Begin compiling code for the board Arduino Nano 📦


Using board 'nano' from platform in folder: /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2
Using core 'arduino' from platform in folder: /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2

Detecting libraries used...
/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp -o /dev/null

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

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp -o /dev/null

Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp -o /dev/null

Alternatives for Adafruit_GFX.h: [Adafruit_GFX_Library@1.5.7]
ResolveLibrary(Adafruit_GFX.h)
  -> candidates: [Adafruit_GFX_Library@1.5.7]
/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp -o /dev/null

Alternatives for Adafruit_SSD1306.h: [Adafruit_SSD1306@1.3.0]
ResolveLibrary(Adafruit_SSD1306.h)
  -> candidates: [Adafruit_SSD1306@1.3.0]
/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp -o /dev/null

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src/SPI.cpp -o /dev/null

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src/Wire.cpp -o /dev/null

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src/utility/twi.c -o /dev/null

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp -o /dev/null

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp -o /dev/null

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library/glcdfont.c -o /dev/null

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp -o /dev/null

Generating function prototypes...
/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/preproc/ctags_target_for_gcc_minus_e.cpp

/home/uther/xod/__packages__/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/preproc/ctags_target_for_gcc_minus_e.cpp

Compiling sketch...

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp.o

Compiling libraries...

Compiling library "SPI"

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src/SPI.cpp -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/SPI/SPI.cpp.o

Compiling library "Wire"

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src/Wire.cpp -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Wire/Wire.cpp.o

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src/utility/twi.c -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Wire/utility/twi.c.o

Compiling library "Adafruit_GFX_Library"

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library/glcdfont.c -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_GFX_Library/glcdfont.c.o

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp.o

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp.o

Compiling library "Adafruit_SSD1306"

/home/uther/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 -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/cores/arduino -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/variants/eightanaloginputs -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI/src -I/home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire/src -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library -I/tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp -o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o

Compiling core...

Using precompiled core: /tmp/arduino-core-cache/core_arduino_avr_nano_cpu_atmega328_e535d0b0bc8a16bab3929a3e856728e3.a

Linking everything together...

/home/uther/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 /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/xod_1575770354621_sketch.ino.elf /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/SPI/SPI.cpp.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Wire/Wire.cpp.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Wire/utility/twi.c.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_GFX_Library/glcdfont.c.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o /tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/../arduino-core-cache/core_arduino_avr_nano_cpu_atmega328_e535d0b0bc8a16bab3929a3e856728e3.a -L/tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888 -lm

new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `operator new(unsigned int, void*)'
/tmp/arduino-sketch-32F3417AA9C8DAFF0D04720FAEC0A888/sketch/xod_1575770354621_sketch.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

Multiple libraries were found for "Adafruit_GFX.h"
 Used: /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library
Multiple libraries were found for "Adafruit_SSD1306.h"
 Used: /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306
Multiple libraries were found for "SPI.h"
 Used: /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI
Multiple libraries were found for "Wire.h"
 Used: /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire

Using library SPI at version 1.0 in folder: /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/SPI 
Using library Wire at version 1.0 in folder: /home/uther/xod/__packages__/packages/arduino/hardware/avr/1.8.2/libraries/Wire 
Using library Adafruit_GFX_Library at version 1.5.7 in folder: /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_GFX_Library 
Using library Adafruit_SSD1306 at version 1.3.0 in folder: /tmp/xod_temp_sketchbookDEfjwe/libraries/Adafruit_SSD1306 

Error: exit status 1
Compilation failed.
Compilation failed
Command `/opt/XOD\ IDE/resources/arduino-cli --config-file=/tmp/arduino-cliFRXf5c/.cli-config.yml compile --fqbn arduino:avr:nano:cpu=atmega328 --verbose /tmp/xod_temp_sketchbookDEfjwe/xod_1575770354621_sketch` failed 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.

Hi @apsolucija,

The simplest patch for drawing text on the display is (as pointed out by @gweimer) :

The xodball for this patch:
ssd1306_text_example.xodball (3.3 KB)

However, please note that my library only works with the SSD1306 controller. It is possible that your OLED devices use a different display controller.

You should also check that you are using correct address for your OLED device. You can use @cesars I2C scanner to read the address of your device:
https://xod.io/libs/cesars/i2c-scanner/

Sorry to hear that the workaround failed for you. I do all of my xod work on a mac, but to see if I could replicate your problem I installed the latest XOD-IDE (0.32.1) on an ubuntu virtual machine. The initial installation gave me Arduino AVR Boards version 1.8.1 and example-scroll compiled without any problem. I then ran Upgrade Arduino Packages and Toolchains… which upgraded the AVR Boards version to 1.8.2. I thought this would result in the compilation issue you encountered, but example-scroll compiled without any problem.

I wonder if a clean install (including removal of the xod directory from your home directory) would help? However, this seems like a drastic step. I’m sure someone with more expertise in the toolchain will be able to give you better advice.

yes yes yes, finally oled has worked and displays the text, i’m so happy … thank you so much “wayland” … its awsome …
now i’m just looking at how to display depending on the state of let’s say the led diode prints me text when it works and when it doesn’t, not so much confusion to do on the screen … the old lcd was pretty easy to see the status of something … here there is a lot of linking to display a single text … and where I need to link the status of something to an oled display

I cant test this program out due to the bug in my program but I placed the text into a concat and ran it through a gate that opens up when the led is on. Give it a shot and see if it works.

oled with “on” text when led is engaged.xodball (6.9 KB)

Hi there! The problem is not with the @wayland library but indeed with XOD itself.

To be more precise, XOD uses the so-called “placement new” operator heavily which was not defined on some platforms. So it defines its own implementation. Recently official Arduino released “Arduino AVR Boards version 1.8.2” which carries the implementation natively. So, now you get the error of placement new defined multiple times:

... blah blah blah

new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `operator new(unsigned int, void*)'

... blah blah blah

... report to XOD developers.

The issue was fixed recently with the release of XOD 0.32.1. Feel free to update to get rid of the error.

it works great, thank you very much, all I’m interested in is how to print more lines and how to make your own logo or shape …
thanks in advance…

unfortunately it doesn’t work, maybe something else should be added instead of concat?

how do i have to connect it to be text when the diode is on and without text when the diode is off …

Mmmmm maybe try getting rid of the concat and placing the gate in between the done on of the draw-text node and the upd pin on the send to buffer node? I’m not sure lol I just trying to guess on what can work at the moment. It would be cool if the if-else node worked with texts as well

Is the text showing up with the diode on?

use “any” and when the LED goes out clear the display

where should i connect any node?

or is there some simpler way?

Where to connect the any node depends on what you are trying to pulse when the LED comes on. The any node is for joining multiple pulses. You don’t need the any node if there is only one input being used.

Are you trying to update text when the LED comes on AND after you clear the display on boot? If that is your goal, then clear-display-DONE should go to the other any input and any output should link to the draw-text-UPD pin. If you want to update the text when LED comes on AND when it goes off, you will need a pulse-on-change between the flip-flop and the any node.

FYI: bus nodes (the triangles) only exist to clean up the program layout so wires aren’t running across the screen. If you are not going to place them where they are being used, you may as well just run wires directly without the bus nodes. You can run multiple wires out of the from-bus, so you may not need so many of them – whatever makes it look best/cleanest.

thanks, i just wanna show when the LED is on the screen it says “LED on” and when the LED is off to write “LED off” in the simplest possible way …