Read PWNM Duty Cykle

How to read the PWM duty cycle? I display it on display

(deleted)

What PWM duty cycle?

If the PWM is generated with analogWrite() then you know the duty cycle from the number used with analogWrite()

...R