I've been trying to find where in the Arduino system are the specific board pins defined ? For example some boards have pins like D1, D2 defined and others do not. Where can I see the board definition file ? I've search my filesystem for something like board definition, board.txt, but I can't find any file with this information in it. Thanks. I'm running OSX.
pins.h
Thank you for the reply. This led me to find the many files named pins_arduino.h on my system.
tavdog:
Thank you for the reply. This led me to find the many files named pins_arduino.h on my system.
Oops, yeah. One for each variant.
search term: Arduino ( model ) pinout
arduino nano pinout: http://www.circuitstoday.com/arduino-nano-tutorial-pinout-schematics
The variant for each board is defined in boards.txt. For example, in the Arduino AVR Boards platform's boards.txt, this line:
uno.build.variant=standard
means the Uno uses the "standard" variant, so you would look under the variants/standard folder to find the pin mapping for the Uno: