Pages: [1]   Go Down
Author Topic: pin number.  (Read 630 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello, i am trying to understand a code example, but i dont know the correspondence between the number and the physical pin in the arduino decimilla:

Code:
int onModulePin = 2;

I understand the rest of the code. Does anybody known what is this pin or an URL with the correspondence?

Thanks. Regards
Logged

Norway@Oslo
Offline Offline
Edison Member
*
Karma: 12
Posts: 2033
loveArduino(true);
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

pin number 2 will correspond to the upper pin number 3 from the right.
Logged

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

Thanks! so, the numbers that i see in the board are the numbers used in the programming?

Regards
Logged

Connecticut, US
Offline Offline
Edison Member
*
Karma: 2
Posts: 1036
Whatduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.

Do note that the "Analog 0" to "Analog 5" can also be used as regular digital I/O pins 14-19.  I think the only function requiring the analog pin numbering scheme is analogRead().
« Last Edit: February 11, 2009, 07:53:54 am by halley » Logged

Pages: [1]   Go Up
Jump to: