Notes and findingsFirst argument in functions analogRead() and analogWrite() is the number in the pin name , not the chip pin number. For example, for pin D6 (chip pin #9) we must use:
analogWrite(6, value); // 6 for D6, not 9 for pin#9...
The function analogWrite() will accept values greater than 255 but the result will not be as expected. So always make sure second argument will not exceed 255.
|