Analog read and write to control LED brightness. In this example we use the analogRead() function to the read the value of a potentiometer, the mao() function to convert the 1024 anolog steps to 256 digital steps and analogWrite() on a PWM pin to control LED brightness.
-~-~~-~~~-~~-~-
Please watch: "Arduino Power Monitor"
[ Ссылка ]
-~-~~-~~~-~~-~-
Ещё видео!