Bouni / Arduino-Pinout

45 stars 20 forks source link

Digital pin numbers, and AVR codes on Arduino Micro diagram #2

Open devzendo opened 8 years ago

devzendo commented 8 years ago

Hi Bouni, Many thanks for your really clear Arduino diagrams!

I've been using the Arduino Micro one, and have found a few differences with the digital pin assignments in version 1.6.5 of the Arduino IDE (variants/leonardo/pins_arduino.h, included from variants/micro/pins_arduino.h), and have verified that these pin numbers raise signals on the correct pins, with digitalWrite().

On the left: A0 is D18, not 14. A1 is D19, not 15, A2 is D20, not 16, A3 is D21, not 17, A4 is D22, not 18 - and this is PF1, not PF3, A5 is D23, not 19 - and this is PF0, not PF2, MISO/PB3 is also D14 (I haven't tested this), SCK/PB1 is also D15 (I haven't tested this),

On the right, PD3/0/RX/INT2 should be PD2, PD2/1/TX/INT3 should be PD3 PB0/SS is also D17 (I haven't tested this), PB2/MOSI is also D16 (I haven't tested this).

There are also duplicated digital pins, eg D12 is also D29, and others, but I don't think these are needed.

Sorry I can't edit SVG and submit a pull request.

Kind regards, Matt Gumbley

Bouni commented 8 years ago

I will fix these pin number as soon as i have some spare time, maybe this week :-)