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

Add ESP32 port + drivers #7

Closed
amirgon opened this issue Feb 5, 2019 · 6 comments
Closed

Add ESP32 port + drivers #7

amirgon opened this issue Feb 5, 2019 · 6 comments
Assignees

Comments

@amirgon
Copy link
Collaborator

amirgon commented Feb 5, 2019

Add ESP32 port + ILI9341 driver + Resistive Touch driver, and an example on lv_micropython of integrating it all into a Micropython project.

@amirgon amirgon self-assigned this Feb 5, 2019
@amirgon
Copy link
Collaborator Author

amirgon commented Feb 13, 2019

Update

Added support for ESP32 ILI9341.
Also updated lv_micropython project to build and register it.
Added usage examples and build command line to README.md.

Next - resistive touch driver.

@kisvegabor
Copy link
Member

kisvegabor commented Feb 15, 2019

I tried to test the new version on ESP32. It compiled well using the instructions from the Readme. However, I didn't find how to flash the compiled binary to the ESP32.

Can you help with that?

@amirgon
Copy link
Collaborator Author

amirgon commented Feb 15, 2019

I tried to test the new version on ESP32. It compiled well using the instructions from the Readme. However, I didn't find how to flash the compiled binary to the ESP32.

Can you help with that?

Yes.
I build and flash it with:

make -C ports/esp32/ ESPIDF=~/esp/projects/lv_mpy_deps/esp-idf -j4 LV_CFLAGS="-DLV_HOR_RES=240 -DLV_VER_RES=320 -DLV_COLOR_DEPTH=16" deploy

The deploy target at the end uses esptool to flash it through USB.
You need esptool installed (I think it comes with the standard esp-idf installation, or you can install it separately).
You will also need to have user permissions to access the /dev/ttyUSB0 device. On Linux, you can enable this by adding your user to the dialout group, and rebooting or logging out and in again.

In general, just follow the instructions in ESP32 README.

@kisvegabor
Copy link
Member

I see, thank you!

Somehow I couldn't compile it again. But when I changed the IDF version accorfing to the build log it compiled.

> make -C ports/esp32/ ESPIDF=~/esp/esp-idf LV_CFLAGS="-DLV_HOR_RES=320 -DLV_VER_RES=240 -DLV_COLOR_DEPTH=16" 

Current git hash:   44b97b7fe7e0f2612de467541b92e93abece5c87
Supported git hash: 30545f4cccec7460634b656d278782dd7151098e

I registered the display as you described in the README and it was working well!
Congratulation! 👏 👏 👏

img_20190215_145524

@amirgon
Copy link
Collaborator Author

amirgon commented Feb 15, 2019

I registered the display as you described in the README and it was working well!
Congratulation!

Great!! 😄 Thanks for trying it out.

@amirgon
Copy link
Collaborator Author

amirgon commented Feb 18, 2019

Added resistive touch driver.
Updated advanced_demo.py example.

Closing.

@amirgon amirgon closed this as completed Feb 18, 2019
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