When I look at the pinout for the tinies, i get confused.
(I found a little about it on the forum:
http://arduino.cc/forum/index.php/topic,124139.15.html and it helped in some respect, but also raised me to a higher level of confusion).
Not wanting to redefine the reset-pin, that leaves me with 5 available pins, DIP# 2, 3, 5, 6 and 7.
That looks nice anyway!
- Analog in on DIP# 2, 3, and 7
- Digital in/out on DIP# 2, 3, 5, 6 and 7
- Out with possibility of PWM on DIP# 2, 3, 5 and 6
But how do I call them?
If I write:
digitalRead(4)
I will read the logic value of PIN# 3 ?
And likewise, if I write:
analogRead(2)
I will read the analog value of PIN# 3 ?
In other words: There are several possibilities from the processor connected to a limited number of pins. I can't use them all at the same time, but by telling the processor what I want to do, it will give me that?
I know it is a microcontroller-noobish question, but it has kept me wondering for some time.