Can't compile SSD1306UiDemo for Wifi Kit 8

Arduino IDE: File > Examples > Heltec ESP8266 Dev-Boards > OLED > SSD1306DemoUi

I’m able to get other SSD1306 examples to compile for the WiFi Kit 8, but this one fails at not recognizing the OLEDDisplayUi class:

‘OLEDDisplayUi’ does not name a type

I’ve attempted to add the header file for that class and include the .cpp file in the project directory as well, but then I get complilation source conflicts.

Here is the full error (NOT attempting to add the header):

Arduino: 1.8.10 (Linux), Board: “WiFi Kit 8, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600”

/home/pi/arduino-1.8.10/arduino-builder -dump-prefs -logger=machine -hardware /home/pi/arduino-1.8.10/hardware -hardware /home/pi/.arduino15/packages -tools /home/pi/arduino-1.8.10/tools-builder -tools /home/pi/arduino-1.8.10/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/arduino-1.8.10/libraries -libraries /home/pi/Arduino/libraries -fqbn=heltec-esp8266:esp8266:wifi_kit_8:xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=10C4_EA60 -ide-version=10810 -build-path /tmp/arduino_build_211047 -warnings=none -build-cache /tmp/arduino_cache_912375 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.python3.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -verbose /tmp/arduino_modified_sketch_134540/SSD1306UiDemo.ino
/home/pi/arduino-1.8.10/arduino-builder -compile -logger=machine -hardware /home/pi/arduino-1.8.10/hardware -hardware /home/pi/.arduino15/packages -tools /home/pi/arduino-1.8.10/tools-builder -tools /home/pi/arduino-1.8.10/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/arduino-1.8.10/libraries -libraries /home/pi/Arduino/libraries -fqbn=heltec-esp8266:esp8266:wifi_kit_8:xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=10C4_EA60 -ide-version=10810 -build-path /tmp/arduino_build_211047 -warnings=none -build-cache /tmp/arduino_cache_912375 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mkspiffs/2.5.0-4-b40a506 -prefs=runtime.tools.python3.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/python3/3.7.2-post1 -prefs=runtime.tools.mklittlefs.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=/home/pi/.arduino15/packages/heltec-esp8266/tools/mklittlefs/2.5.0-4-69bd9e6 -verbose /tmp/arduino_modified_sketch_134540/SSD1306UiDemo.ino
Using board ‘wifi_kit_8’ from platform in folder: /home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4
Using core ‘esp8266’ from platform in folder: /home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4
Detecting libraries used…
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 /tmp/arduino_build_211047/sketch/SSD1306UiDemo.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire /tmp/arduino_build_211047/sketch/SSD1306UiDemo.ino.cpp -o /dev/null
Alternatives for heltec.h: [Heltec_ESP32_Dev-Boards@1.1.0 Heltec_ESP8266_Dev-Boards@1.0.3]
ResolveLibrary(heltec.h)
-> candidates: [Heltec_ESP32_Dev-Boards@1.1.0 Heltec_ESP8266_Dev-Boards@1.0.3]
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /tmp/arduino_build_211047/sketch/SSD1306UiDemo.ino.cpp -o /dev/null
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /tmp/arduino_build_211047/sketch/OLEDDisplay.cpp -o /dev/null
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /tmp/arduino_build_211047/sketch/OLEDDisplayUi.cpp -o /dev/null
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire/Wire.cpp -o /dev/null
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src/heltec.cpp -o /dev/null
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src/oled/OLEDDisplay.cpp -o /dev/null
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src/oled/OLEDDisplayUi.cpp -o /dev/null
Generating function prototypes…
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /tmp/arduino_build_211047/sketch/SSD1306UiDemo.ino.cpp -o /tmp/arduino_build_211047/preproc/ctags_target_for_gcc_minus_e.cpp
/home/pi/arduino-1.8.10/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_211047/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch…
/home/pi/.arduino15/packages/heltec-esp8266/tools/python3/3.7.2-post1/python3 /home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/signing.py --mode header --publickey /tmp/arduino_modified_sketch_134540/public.key --out /tmp/arduino_build_211047/core/Updater_Signing.h
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /tmp/arduino_build_211047/sketch/OLEDDisplay.cpp -o /tmp/arduino_build_211047/sketch/OLEDDisplay.cpp.o
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /tmp/arduino_build_211047/sketch/OLEDDisplayUi.cpp -o /tmp/arduino_build_211047/sketch/OLEDDisplayUi.cpp.o
/home/pi/.arduino15/packages/heltec-esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/lwip2/include -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_211047/core -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10810 -DARDUINO_wifi_kit_8 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=“wifi_kit_8"” -DFLASHMODE_DIO -DESP8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/cores/esp8266 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/variants/wifi_kit_8 -I/home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire -I/home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards/src /tmp/arduino_build_211047/sketch/SSD1306UiDemo.ino.cpp -o /tmp/arduino_build_211047/sketch/SSD1306UiDemo.ino.cpp.o
SSD1306UiDemo:8:1: error: ‘OLEDDisplayUi’ does not name a type
OLEDDisplayUi ui ( Heltec.display );
^
SSD1306UiDemo:10:38: error: ‘OLEDDisplayUiState’ has not been declared
void msOverlay(OLEDDisplay display, OLEDDisplayUiState state) {
^
SSD1306UiDemo:16:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame1(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:24:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame2(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:31:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame3(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:35:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame4(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:10:38: error: ‘OLEDDisplayUiState’ has not been declared
void msOverlay(OLEDDisplay display, OLEDDisplayUiState state) {
^
SSD1306UiDemo:16:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame1(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:24:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame2(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:31:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame3(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:35:39: error: ‘OLEDDisplayUiState’ has not been declared
void drawFrame4(OLEDDisplay display, OLEDDisplayUiState state, int16_t x, int16_t y) {
^
SSD1306UiDemo:44:1: error: ‘FrameCallback’ does not name a type
FrameCallback frames[] = { drawFrame1, drawFrame2, drawFrame3, drawFrame4 };
^
/tmp/arduino_modified_sketch_134540/SSD1306UiDemo.ino: In function ‘void setup()’:
SSD1306UiDemo:55:3: error: ‘ui’ was not declared in this scope
ui.setTargetFPS(30);
^
SSD1306UiDemo:63:27: error: ‘BOTTOM’ was not declared in this scope
ui.setIndicatorPosition(BOTTOM);
^
SSD1306UiDemo:66:28: error: ‘LEFT_RIGHT’ was not declared in this scope
ui.setIndicatorDirection(LEFT_RIGHT);
^
SSD1306UiDemo:70:24: error: ‘SLIDE_LEFT’ was not declared in this scope
ui.setFrameAnimation(SLIDE_LEFT);
^
SSD1306UiDemo:73:16: error: ‘frames’ was not declared in this scope
ui.setFrames(frames, frameCount);
^
/tmp/arduino_modified_sketch_134540/SSD1306UiDemo.ino: In function ‘void loop()’:
SSD1306UiDemo:85:29: error: ‘ui’ was not declared in this scope
int remainingTimeBudget = ui.update();
^
Multiple libraries were found for “Wire.h”
Used: /home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire
Multiple libraries were found for “heltec.h”
Used: /home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards
Not used: /home/pi/Arduino/libraries/Heltec_ESP32_Dev-Boards
Using library Wire at version 1.0 in folder: /home/pi/.arduino15/packages/heltec-esp8266/hardware/esp8266/0.0.4/libraries/Wire
Using library Heltec_ESP8266_Dev-Boards at version 1.0.3 in folder: /home/pi/Arduino/libraries/Heltec_ESP8266_Dev-Boards
exit status 1
‘OLEDDisplayUi’ does not name a type

hi,

we have updated it.

please git pull.

1 Like