shyam25 wrote: ↑
Thu Sep 26, 2019 5:57 am
i just want to measure PWM single or high low Pulse duration not rx tx
You have had a reply from one of the volunteer helpers in this forum who is, outside of the Raspberry Pi organisation, probably the most knowledgeable person contributing to the forums on this topic. You have been provided a link to their own code implementing a solution to your requirement. The description is "Class to monitor a PWM signal and calculate the frequency, pulse width, and duty cycle."
If that is not helpful, perhaps you should ask specific questions about focussed issues that are holding you back.
"Just do my project for me" is probably not an approach that will meet with any sympathy, other than in the Wanted
subforum, where you will find many people ready to sell you their services.