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