Open SinglWolf opened 3 years ago
Hi,
If you follow what's inside the gpio_set_level
you end up in gpio_ll_set_level
, you can see the implementation here, basically it only checks if level
is 0 or not 0, so if level
is 1 or 100 it ends up being the same.
We should update the docs with this comment, thanks for reporting it.
For a long time I did not want to update the drivers for my project, but I did it anyway. While looking at the innovations, I noticed something new for me. Explain to me, please, how this can be? The function from the
esp-idf
framework only accepts the following arguments:With
gpio_num
, everything me is clear, but withlevel
there is some misunderstanding. Watch the headline briefing, it says:Now let's turn to the
disp_backlight_set()
function:This function is called when the display is initialized as follows:
As a result, the function
gpio_set_level()
receives a argumentlevel
equal to100
. Uncover the secret of the undocumented trick ingpio_set_level()
when initializing the display. P.S. Setting Kconfig:Backlight Control (Switch control)
Point menu[*] Is backlight turn on with a HIGH (1) logic level?
or[*] Is backlight turn on with a HIGH (0) logic level?
does not affect anything.