I actually changed nothing. I made that code tested it, was working, then posted here. after a while I did further testing with different PWM waveforms, was working fine, but then suddenly it stopped giving me correct values
I actually changed nothing. I made that code tested it, was working, then posted here. after a while I did further testing with different PWM waveforms, was working fine, but then suddenly it stopped giving me correct values