First documentation for analogRead() seems to have disappeared with 0.6.0 updates?
Quick query - having written a value to an output pin - e.g analogWrite(pin, 150);
Is there anyway of finding the last value written? From memory analogRead() does not work like digitalRead() for a PWM output.
The problem is I want to control dimming of an TFT screen but not dim it if it is already off - hope that makes sense. Clearly, I could just maintain the last written value as a global variable - but this doesn’t seem too clever.