lar3ry:
My origional question and post was to get it after some code some where set it. so i didn't have to worry if I have a good value or not it is what is there in one simple sweep.
States of pins are set either by code within the Arduino's processor, of by inputs from outside the Arduino's processor. There is not "some code somewhere", that does not consist of one of these two things.
so lets say for argument sake, I have 30 different location out there to set the PWM analogWrite(), now lets say I wanted to add my web view code. I would have to find all 30 locations and make sure I save the value into my variable or i could be getting an old value. There is only one way to quickly be sure. and that is to retrieve the value from its final storage spot. Currently there is no default code to do this.Thanks to everyone's posts to my question. so I decided to see how the PWM was stored form the analogWright(). the code is simple enough for me to re-wright it to get the value insted of save it. The function doesn't take up much memory space and it without any question gets the value I need. So I am happy
as for your comment it is perfectly ok to place code everywhere you are suing analogWrite() to store the value you are sending to it. so your argument is valid and I agree with you.
My inspiration is from a trick to easiy blink a light:
digitalWrite(13,!digitalRead(13));
dealy(1000);
where you use digitalRead to discover what was set there before by digitalWrite.
I hope to share what I have found. and maybe someone else can use this in the future
Everyone again Thanks!!!
your comments have been helpful.