Hello
I have seen in the various examples that most of the time the output are digital (0 or 1) . i program a PWM signal to make any DC output on the pin 18
but unfortunately, this occurs into a loop checking UART data coming. It is simple to let a pin at 0 or 1, but i need to constantly generate the PWM signal if something in between. if i write a while loop in this event handler, i cannot check if there is new data coming since my event handler is stuck doing the PWM.
How is the best way to turn a pin as an analog output without condamning the event loop to detect if there is a BLE data coming to shut down this signal or modify its value?
Thanks
Philippe