I have a question about assigning pin numbers and how the arduino works. Like how does it know the difference between analog pins 0,1,2,3,4,5 and digital pins 0,1,2,3,4,5 in the set up? I understand you can use 14,15,16,17,18,19 , but I was under the impression once you do this it becomes a digital pin? Can anyone clarify this?
int button=2; // ???????