Hello, I have already used this screen for another project. It’s not an e-ink screen so it would need another dedicated code.
Hello all, I’m considering this solution as well, but want to do a quick check with you if this still is a solution which you advise, since we are already in 2024 now. Thanks
has anybody tried with M5?
Saw a few post up there’s an untested firmware for the m5.
The lilygon screens has also been updated with a newer hardware version (v2.4) with what looks like a nicer touch screen cover but not sure if they work the same.
More inclined towards the m5 since it’s off the shelf and easier to implement.
Thank you for the work put into this
I’m using the Lilygo T5-4.7 Inch S3 E-paper v2.4 (2024-01-15) board with capacitive touch screen.
I’m using Arduino IDE to compile the code and upload.
After some debugging I have finally gotten the it to run the application. In the end I had to disable the buttons (lines 15+):
/*
pinMode(BUTTON_1, INPUT); //S4 on board, 0 = button pressed, 1 = button released.
pinMode(BUTTON_2, INPUT); //S2 on board, 0 = button pressed, 1 = button released
pinMode(BUTTON_3, INPUT); //S3 on board, 0 = button pressed, 1 = button released
*/
and stop listening for button presses (line 101):
// listenButton();
if not the device would simply reset whenever the framebuffer is created.
Now I have a new problem. The touch screen does not work for me. I get an error:
Start touchscreen failed! Please check wiring.
But it works with the Lilygo-EPD47 demo. The demo uses TouchDrvGT911
for touch and scans for the pin to use, either 0x14 or 0x5D (this is from the demo code):
uint8_t touchAddress = 0x14;
Wire.beginTransmission(0x14);
if (Wire.endTransmission() == 0) {
touchAddress = 0x14;
}
Wire.beginTransmission(0x5D);
if (Wire.endTransmission() == 0) {
touchAddress = 0x5D;
}
and debug using the demo code now shows it’s 0x5d (93)
I’m guessing the _settings.h
file should be updated with a new set addresses for the pins to make this work, but how do I find the correct ones?
Hi,
Pins have been changed on this version of screen.
Here you can see the differents IO used.
You need to update them in _settings.h
on line 396.
//----- Lilygo T5
#elif defined(LILYGO)
#define BUTTON_1 (39)
#define BUTTON_2 (34)
#define BUTTON_3 (35)
#define BATT_PIN (36)
#define SD_MISO (12)
#define SD_MOSI (13)
#define SD_SCLK (14)
#define SD_CS (15)
#define TOUCH_SCL (14)
#define TOUCH_SDA (15)
#define TOUCH_INT (13)
#define GPIO_MISO (12)
#define GPIO_MOSI (13)
#define GPIO_SCLK (14)
#define GPIO_CS (15)
#endif
Thank you.
I seem to have found a code example for the newer board here.
It only has pin for BUTTON_1 defined, so I’ll update the code and see if I can get this to work.
Would you want me to contribute back to the git repository if I find a solution?
Hi,
I have a version 2.4 board too. I am waiting for a T5-4.7 plus to be implemented. Pins are as Signal mentioned.
Thanks Sebyldino for all you have done for this project!
hello!
I ordered 3 pcs because I think this is a very good project - thanks for it sebyldino - but I got a v2.4 version, and can’t done this without any error or problem.
Anybody use this version of lilygo?
I only can do this method by “flash download tool” and I has to use the 3pcs 2.1.1. bin-s?
I dont understand the “put the board in boot mode with button”, can you describe this method a little more detailed?
I have done in the flash end, but nothing works, all dead, no srceeen, no blue led
Thanks!
Hello,
I know there is a new version of esp32 package, actually in 3.x, and when i did this project it was 2.x. Try to downgrad your version to it (in Tools → Board → Boards manager, search ESP32 and choose a 2.x version by Espressif).
May be, it is the problem.
Yes. Select the 3 .bin files and set their adresses like describe in the guide.
When you want to upload code on the board, you need to put it in boot mode. So press the boot button (IO0 on the v2.4) until the upload start when you click Start on Flash Download tool.
To debug, you can plug your Lilygo to your computer and open the serial monitor of Arduino IDE.
hi sebyldino,
thanks for your fast answer!
I tried that to downgrade, and half that worked: I got the Elegant OTA update, but got a failed with that.
You have 3 “.bin” of 2.1.1, whitch I have to use by Elegant OTA (Homey_epaper_v2.1.1.ino.bin, and a partition and a bootloader)
These other setting are good?
(Next week I can try the tool mode, at home I have only mac)
Hello Seby!
I got it, my friend helped to install it, and I have the QR code right now to connect to it.
I can connetc to this openes wifi to configure my wifi settings, but there is nothing happens, there is no captive portal ask where I can write my wifi settings.
Is there anywhere else in code where I can get my wifi settings?
Thanks, Bence
Hello,
You can add default wifi param in “Wifi_Server_Data.ino” file before upload it, by adding this in the readData() function:
void readData() {
SSID = prefs.getString("SSID", "");
PASSWORD = prefs.getString("PASSWORD", "");
if(SSID == "") SSID = "YOUR_SSID"; // Add this line and change to your ssid
if(PASSWORD == "") PASSWORD = "YOUR_PASSWORD"; // Add this line and change to your password
...
} //END readData()