Hi,
How to use the same gpio pin for both hal file and pwm output...
sdk ver:17.0.2
sdk ver for mesh:5.0.0
Hi,
How to use the same gpio pin for both hal file and pwm output...
sdk ver:17.0.2
sdk ver for mesh:5.0.0
When PWM is started it will take control over the GPIO, while when PWM is stopped it will fall back to the normal GPIO usage. So I guess this should be straight forward by starting and stopping PWM? You can at any time configure the GPIO through hardware abstraction layer (hal api) also, but if it's configured as output (by the hal api) then it's the PWM that will control the output level and frequency when the PWM is running.