vroland / epdiy

EPDiy is a driver board for affordable e-Paper (or E-ink) displays.

Home Page:https://vroland.github.io/epdiy-hardware/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Having issue while compiling the example code for Lilygo T5-4.7

lepeli opened this issue · comments

commented

Hey, I've tried to compile the example for the Lilygo T5-4.7 and I've runned into some issues.

Board information

Board: Screen-4.7-S3 V.2.3

Compilation issue

/Users/[redacted]/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/t547plus/lib94b/libepdiy.a(epd_board_lilygo_t5_47.c.o):(.literal.epd_board_poweron+0x4): undefined reference to `i2s_gpio_attach'
/Users/[redacted]/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/t547plus/lib94b/libepdiy.a(epd_board_lilygo_t5_47.c.o): in function `epd_board_poweron':
/Users/[redacted]/Perso/temp-homescreen/display/.pio/libdeps/t547plus/epdiy/src/board/epd_board_lilygo_t5_47.c:113: undefined reference to `i2s_gpio_attach'

For reference my plateformio.ini config looks like this:

[env:t547plus]
platform = espressif32
upload_protocol = esptool
framework = arduino
upload_speed = 921600
monitor_speed = 115200
board = lilygo-t5-47-plus
build_flags = 
	-D CORE_DEBUG_LEVEL=3
        -DCONFIG_EPD_DISPLAY_TYPE_ED047TC1
	-DCONFIG_EPD_BOARD_REVISION_LILYGO_T5_47
lib_deps = 
	adafruit/Adafruit GFX Library@^1.11.9
	adafruit/Adafruit BusIO@^1.14.5
	Wire
	SPI
	https://github.com/lewisxhe/PCF8563_Library.git
	bblanchon/ArduinoJson@^6.21.3
	https://github.com/vroland/epdiy.git

I didn't get any compilation errors while using the board settings in your plateformio.ini example.
Except that it doesn't want to upload the sketch to the board because of this error:

A fatal error occurred: This chip is ESP32-S3 not ESP32. Wrong --chip argument?

EPD_WIDTH and EPD_HEIGHT

src/main.cpp: In function 'void display_center_message(const char*)':
src/main.cpp:92:20: error: 'EPD_WIDTH' was not declared in this scope
     int cursor_x = EPD_WIDTH / 2;
                    ^~~~~~~~~
src/main.cpp:93:20: error: 'EPD_HEIGHT' was not declared in this scope
     int cursor_y = EPD_HEIGHT / 2;

It seems like theses variables aren't defined by default while using DCONFIG_EPD_DISPLAY_TYPE_ED047TC1 and DCONFIG_EPD_BOARD_REVISION_LILYGO_T5_47 build flags.

Thanks in advance for your help :)

This repository does not support the S3 version of Lilygo currently. Please check the current open issue about it:
#203

Keep tuned, I have really low hope at this point that this board will be added, because of the facts exposed in that Issue