Something like, but not that. digitalWrite is as it's name says, digital. On or off.
You have to use analogWrite to vary the brightness. Only a select number of the pins on the Arduino support analogWrite though.
Something like, but not that. digitalWrite is as it's name says, digital. On or off.
You have to use analogWrite to vary the brightness. Only a select number of the pins on the Arduino support analogWrite though.