This example code is in the public domain. * LED connected from digital pin 9 to ground Side pins of the potentiometer go to +5V and ground * potentiometer connected to analog pin 0.Ĭenter pin of the potentiometer goes to the analog pin. Reads an analog input pin, maps the result to a range from 0 to 255Īnd uses the result to set the pulsewidth modulation (PWM) of an output pin.Īlso prints the results to the serial monitor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |