My reason I noticed that when I mapped my data, I still for some reason got out numbers greater and less than what I wanted to get.
I don't see why a library should be subject to bloat.
Im looking at the wiring_analog.c file and I noticed that if val == 0 it outputs LOW as a digital signal and if val == 255 the output is digital HIGH. I see that if val is not 0 or 255, it goes to the timer. Usually we need to map the input signal to 0 and 255 because you get weird data if the input is less than or greater than 0 and 255.
SyntaxanalogWrite(pin, value)Parameterspin: the pin to write to.value: the duty cycle: between 0 (always off) and 255 (always on).Returnsnothing
From: http://arduino.cc/en/Reference/AnalogWriteQuoteSyntaxanalogWrite(pin, value)Parameterspin: the pin to write to.value: the duty cycle: between 0 (always off) and 255 (always on).Returnsnothing So, why are you assigning the return value to a variable?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16