Loading...
Pages: [1]   Go Down
Author Topic: what is the ~ pins and what do they do?  (Read 219 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
Offline Offline
God Member
*****
Karma: 15
Posts: 743
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

My Arduino libraries at http://code.google.com/p/arduino-code-repository
Parola modular matrix text scrolling system http://code.google.com/p/parola-for-arduino/

0
Offline Offline
Tesla Member
***
Karma: 76
Posts: 6842
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

Pages: [1]   Go Up
Print
 
Jump to: