Loading...
Searching...
No Matches
arduino_board_pins.h File Reference

Arduino digital pin map. More...

Detailed Description

Arduino digital pin map.

Note
The contents of this file are mostly generated using the python snippets documented. Do not edit these parts by hand, but rather adjust the python snippets and regenerate.
Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file arduino_board_pins.h.

#include "arduino_iomap.h"
#include "periph/gpio.h"
+ Include dependency graph for arduino_board_pins.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define ARDUINO_LED   /* board specific number */
 The digital pin connected to the LED.
 
#define ARDUINO_PIN_LAST   /* board specific number */
 Number of the last digital pin.
 
static const gpio_t arduino_pinmap []
 Look-up table for the Arduino's digital pins:
 

Macro Definition Documentation

◆ ARDUINO_LED

#define ARDUINO_LED   /* board specific number */

The digital pin connected to the LED.

E.g. 13 when LED is connected to D13.

Definition at line 39 of file arduino_board_pins.h.

◆ ARDUINO_PIN_LAST

#define ARDUINO_PIN_LAST   /* board specific number */

Number of the last digital pin.

E.g. 42 if D42 is the digital pin with the highest number.

Definition at line 46 of file arduino_board_pins.h.

Variable Documentation

◆ arduino_pinmap

const gpio_t arduino_pinmap[]
static

Look-up table for the Arduino's digital pins:

Generate using

format = """#ifdef ARDUINO_PIN_{0:}
ARDUINO_PIN_{0:},
#elif ARDUINO_PIN_LAST > {0:}
GPIO_UNDEF,
#endif"""
for i in range(70):
print(format.format(i))
void print(const char *s, size_t n)
Print string to stdout.

The Arduino MEGA2560 has D0 to D69, so 70 digital pins is the largest Arduino form factor there is.

Definition at line 76 of file arduino_board_pins.h.