Pages: [1]   Go Down
Author Topic: what is the ~ pins and what do they do?  (Read 349 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,

     I am totally new and was trying the blink sketch for the first time, and I realized, what is the differencce between the i/o pins with ~ and without ~ ? I can't light an led on the one that has the ~ on it. So I was just wondering. THANKS!  smiley-lol
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1260
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The ones with the ~ are PWM pins. You should be able to use them like normal pins.
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11730
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not just "should", they definitely are standard digital pins that can also be used with analogWrite() for PWM (pulse width modulation - see google for more details)

For PWM pins the PWM is turned on when calling analogWrite() and turned off again when calling digitalWrite().  The '~' symbol is, I suppose, a crude representation of a square wave.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: