Hi
I want to set P0.01 as gpio high, how do I configure in overlay file?
so that it remain high whenever I used overlay file.
Thanks !!
Hi
I want to set P0.01 as gpio high, how do I configure in overlay file?
so that it remain high whenever I used overlay file.
Thanks !!
Hello
You can configure the pins for extra flags using GPIO.H functions
like:
gpio_pin_configure_dt(&led, GPIO_OUTPUT_ACTIVE);
where the label led is obtained from the overlay using
GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios);
Thanks for reply !!
I do want to change the application code,
using overlay file want to modify the pin status.
In which location/section of overlay file I have to use below line
gpio_pin_configure_dt(&led, GPIO_OUTPUT_ACTIVE);
This line should be used in main code, not in the overlay.
Hi
I want to set p0.21 pin high/low on every boot.
How to configure it?
Thanks and regards,
Amol