Open cloud263 opened 2 years ago
@cloud263 The ESP32 used in this project is a WROOM32 as well. So depending on your setup I would assume it should work almost with no changes required. Maybe some different pins if another SPI Bus is used.
If you provide some details, like if you are trying to use a certain breakout board with an ESP32 I could have a look.
Best regards
Hello, I have modified a few codes, and the picture can be displayed, but it seems that there is a problem with the color. Does the picture display use the Floyd-Steinberg mode? Best regards.
Currently it tries to set the BMP file as close as possible without any processing: https://github.com/kc1r74p/ReadMePaper/blob/main/src/main.cpp#L206
So no, I currently do not use any additional Algo on the esp32 itself. The only functions to map colors which is used would be: https://github.com/kc1r74p/ReadMePaper/blob/main/src/main.cpp#L142
For me the most important issue was to pass in correct bmp24 files as depending on their encoding it will not work. Typically MS Paint 24bit bmps should work without an issue. Else you could fiddle with: https://github.com/kc1r74p/ReadMePaper/blob/main/src/bmp24.cpp#L101 to adjust how the pixel are read from the file itself.
I also used this node.js app to auto generate correct BMPs which can be served via a cloud service: https://github.com/kc1r74p/quote_renderer/blob/main/src/index.js#L9
I want to transplant the project to the ESP32-WROOM-32 chip. What parts need to be modified to modify the source code? Best regards.