Search   
Home  Print View  

 

Early Projects

Branch Content

Notes and findings

First 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.

Powered by Helpbook -- Hosted at Melissa Unix-Box