Skip to content

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

@devzendo

Description

@devzendo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions