Problem understanding Pins.h April 04, 2015 01:00PM |
Registered: 10 years ago Posts: 62 |
Re: Problem understanding Pins.h April 04, 2015 03:15PM |
Registered: 10 years ago Posts: 590 |
Re: Problem understanding Pins.h April 04, 2015 03:55PM |
Registered: 10 years ago Posts: 62 |
Quote
enif
The analog pins on the Mega A0-A15 are internally represented by the arduino pin numbers 54 to 69. These plain numbers can also be used when referring to those pins as digital pins. Thus, arduino pin 54 is actually the same as A0, which in turn corresponds to the physical pin 97.
Re: Problem understanding Pins.h April 04, 2015 04:47PM |
Registered: 10 years ago Posts: 590 |
static const uint8_t A0 = 54; static const uint8_t A1 = 55; static const uint8_t A2 = 56; static const uint8_t A3 = 57; static const uint8_t A4 = 58; static const uint8_t A5 = 59; static const uint8_t A6 = 60; static const uint8_t A7 = 61; static const uint8_t A8 = 62; static const uint8_t A9 = 63; static const uint8_t A10 = 64; static const uint8_t A11 = 65; static const uint8_t A12 = 66; static const uint8_t A13 = 67; static const uint8_t A14 = 68; static const uint8_t A15 = 69;
Re: Problem understanding Pins.h April 04, 2015 05:20PM |
Registered: 10 years ago Posts: 62 |