Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32-wroom-32 #2

Open
cloud263 opened this issue May 28, 2022 · 3 comments
Open

esp32-wroom-32 #2

cloud263 opened this issue May 28, 2022 · 3 comments

Comments

@cloud263
Copy link

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.

@kc1r74p
Copy link
Owner

kc1r74p commented May 30, 2022

@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

@cloud263
Copy link
Author

cloud263 commented Jun 1, 2022

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.

@kc1r74p
Copy link
Owner

kc1r74p commented Jun 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants