I'm using PWM to control LED brightness using MOSFET, using
val is a 12 bit bit value.
pwmPin is defined as-
val changes in time due to external lightning, I wish to measure PWM value, for later use in code. Using
analogRead(pwnPin) yielded a changing value ranges 7-14.
Is there a way to measure PWM value defined as an output ?
val's value won't save the problem I'm looking for, since code reaches a
deepSeleep phase, which
val can be stored, but I want an actual incidication of its value, and if it actually on.