-
Notifications
You must be signed in to change notification settings - Fork 291
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
SPI_HOST_MAX, LV_VER_RES_MAX and LV_HOR_RES_MAX not defined! #202
Comments
add these lines under the define comment in file "lvgl_helpers.h" should work. # define LV_HOR_RES_MAX 320
# define LV_VER_RES_MAX 240
# define SPI_HOST_MAX 3 |
@xbzxsh Yes, I know! But I expect that the library handle this automatically. |
@xbzxsh, I agree with @mohammadjavadpirhadi, isn't this odd? Wouldn't a KConfig setting be better there? |
Was there any resolution to this? In the other issue related to this, @kisvegabor said:
So I reverted Also, I'm using IDF
Did anyone find the magic combination to make LVGL work with ESP32? |
I saw this issue isn't closed yet, so I'm goint to write what I tried. I'm a newcomer in LVGL and I'd like to develop a little project with the ESP32. However I noticed from the docs that It's not clear for which version is made the I'm using the I created a very simple piece of code: #include "lvgl.h"
int app_main(void)
{
lv_init();
return 0;
} Directory for I started with the master branch for
I switched to
So I switched to the last version for v7 instead of using the newer v8, named
It disappears if I write Some suggestions:
Related to this question: I didn't find a clear way to compile, as you can see. I hope I shared useful elements to improve this library. Only a question remains: using the missing definitions, can I use the LVGL library without bad surprises? |
I have an update. I hope to be helpful. EDIT: I've just seen that there is a merge request to solve the problem of missing defines. They updated the develop branch. |
Hello,
I'm using lvgl v8.3.1 and the master branch of lvgl_esp32_drivers, but during the build, I get these errors:
../components/lvgl_esp32_drivers/lvgl_helpers.c:157:28: error: 'SPI_HOST_MAX' undeclared (first use in this function);
../components/lvgl_esp32_drivers/lvgl_helpers.c:157:28: error: 'LV_VER_RES_MAX' undeclared (first use in this function);
../components/lvgl_esp32_drivers/lvgl_helpers.c:157:28: error: 'LV_HOR_RES_MAX' undeclared (first use in this function);
I think it's because of lvgl update. Manually add these configs in lvgl_helpers.h solves the issue.
The text was updated successfully, but these errors were encountered: