Hello everyone,
I'm working on a Waveshare 7.5" B&W e-paper display with a ESP32 board. What I need to do is to dispaly a certain image on the display in the bitmap format. The image should be downloaded from a web server.
In order to do this, I decided to use the GXEPD2 library since it provides a valid and functioning example of what I'm trying to do. I got no issues whatsoever with the example provided in the github repo, called "GxEPD2_WiFi_Example.ino", I can display those images perfectly on the display.
But when I adapted the code to my standards, I was unable to make it work at all. My waveshare basically continues to go black and white alternatively while running the code.
Part of the Serial logs is:
(...)
downloading file "site.bmp"
connecting to 10.10.21.1
requesting URL: http://10.10.21.1/site.bmp
request sent
HTTP/1.1 200 OK
headers received
File size: 983178
Image Offset: 138
Header size: 124
Bit Depth: 32
Image size: 640x384
downloaded in 6924 ms
_Update_Full : 4268001
bytes read 4294967050
width:640
height:384
downloading file "site.bmp"
connecting to 10.10.21.1
requesting URL: http://10.10.21.1/site.bmp
request sent
HTTP/1.1 200 OK
headers received
File size: 983178
Image Offset: 138
Header size: 124
Bit Depth: 32
Image size: 640x384
downloaded in 6926 ms
_Update_Full : 4268001
bytes read 4294967050
width:640
height:384
downloading file "site.bmp"
connecting to 10.10.21.1
requesting URL: http://10.10.21.1/site.bmp
request sent
HTTP/1.1 200 OK
headers received
File size: 983178
Image Offset: 138
Header size: 124
Bit Depth: 32
Image size: 640x384
(...)
Is there an issue with the bitmap format of the image I'm trying to display? I tried using all kinds of bitmap standards, with no success. Details of it are provided in the logs posted above.
I'm also attaching to this message the code I'm flashing on the board.
Could someone please help me out with this?
DEC2.ino (15.4 KB)