Loading...
Pages: [1]   Go Down
Author Topic: Digital out PWM  (Read 175 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I keep seeing that the Arduino can do PWM on the digital out pins (6 of them). However I am having trouble locating docs on how to do this. I know how to do it manually... However since it has support for it (allegedly  smiley ) I would rather use the built in functionality. Any samples?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

analogWrite(ledpin, value)

and

http://www.arduino.cc/en/Tutorial/Fading

Have fun
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.arduino.cc/en/Reference/AnalogWrite
Logged

Pages: [1]   Go Up
Print
 
Jump to: