Search found 7 matches

by zhukovia
Sat Dec 02, 2023 8:21 am
Forum: ESP-IDF
Topic: Is it possible to programmatically find out whether the display is connected to I2C or not?
Replies: 5
Views: 4040

Re: Is it possible to programmatically find out whether the display is connected to I2C or not?

MicroController wrote:
Sun Nov 26, 2023 1:03 pm
zhukovia wrote:
Sun Nov 26, 2023 11:58 am
How can I do this? I have ESP-IDF v5.1.
a) upgrade to v5.2,
I see that the latest version is 5.1.2. Where did you find 5.2?
by zhukovia
Sun Nov 26, 2023 11:58 am
Forum: ESP-IDF
Topic: Is it possible to programmatically find out whether the display is connected to I2C or not?
Replies: 5
Views: 4040

Re: Is it possible to programmatically find out whether the display is connected to I2C or not?

Yes, it is possible. But apparently, the IDF v5.1's 1306 LCD library functions never check for success of communications and just return ESP_OK no matter what. This seems to have been rectified in ESP-IDF v5.2.
How can I do this? I have ESP-IDF v5.1.
by zhukovia
Sun Nov 26, 2023 6:20 am
Forum: ESP-IDF
Topic: Is it possible to programmatically find out whether the display is connected to I2C or not?
Replies: 5
Views: 4040

Is it possible to programmatically find out whether the display is connected to I2C or not?

Is it possible to understand programmatically whether the display is physically connected? When trying to initialize the display ESP_LOGI(DISPLAY_TAG, "Install SSD1306 panel driver"); esp_lcd_panel_handle_t panel_handle = NULL; esp_lcd_panel_dev_config_t panel_config = { .bits_per_pixel = 1, .reset_...
by zhukovia
Fri Nov 03, 2023 8:26 am
Forum: ESP-IDF
Topic: Incorrect work vTaskList()
Replies: 2
Views: 762

Re: Incorrect work vTaskList()

So it turns out that this is not an occupation, but a free place?
by zhukovia
Thu Nov 02, 2023 8:26 am
Forum: ESP-IDF
Topic: Initializing a recursive structure
Replies: 2
Views: 593

Re: Initializing a recursive structure

Thanks for the answer, I did it :D
by zhukovia
Thu Nov 02, 2023 7:37 am
Forum: ESP-IDF
Topic: Incorrect work vTaskList()
Replies: 2
Views: 762

Incorrect work vTaskList()

I am trying to use a function vTaskList() to get the stack size when my program is running. But I always get the allocated stack size, not the actually used one. How do I see how much memory is actually filled? By running the same subroutine with different stack sizes, I get different sizes of occup...
by zhukovia
Tue Oct 31, 2023 5:36 am
Forum: ESP-IDF
Topic: Initializing a recursive structure
Replies: 2
Views: 593

Initializing a recursive structure

How can I initialize a recursive structure at the compilation stage? Here is an example of the code struct menu_item { char name_menu[20]; int level_menu; bool visible; struct menu_item *sub_menu[]; }; It doesn't work that way struct menu_item main_menu[] = { {"First item", 0, true, {}}, {"Second it...