@ajb2k3 As I Know
-
analog read will read voltage input from 0 V. to 5 V. in this case it will pickup either 0 V. or full 5 V. (depend on PWM duty when you read it). So analog read is useless for this case.
-
digital pin read is just get 0 or 1. But if I can get delta time between it change from 0 to 1 and change back from 1 to 0 it will work. But UI FLOW don't have any block that can read processing time. So it impossible to read duty time with digital pin read only.