Mapping from MCU pins to Arduino pins. More...
Mapping from MCU pins to Arduino pins.
You can use the defines in this file for simplified interaction with the Arduino specific pin numbers.
Definition in file arduino_iomap.h.
Go to the source code of this file.
XIAO's UART devices | |
Arduino's Serial uses USB-CDC-ACM stdio by default | |
#define | ARDUINO_UART_DEV UART_UNDEF |
The Xiao nRF52840 uses USB-CDC-ACM by default. | |
XIAO's SPI buses | |
#define | ARDUINO_SPI_DEV SPI_DEV(0) |
Standard SPI bus for general purpose use. | |
XIAO's I2C buses | |
#define | ARDUINO_I2C_DEV I2C_DEV(0) |
Standard I2C bus for general purpose use. | |
XIAO's on-board LED (LED_BUILTIN) | |
#define | ARDUINO_LED (11) |
Use the Red LED. | |
Mapping of MCU pins to Arduino pins | |
#define | ARDUINO_PIN_0 GPIO_PIN(0, 2) |
Pin Definition for D0. | |
#define | ARDUINO_PIN_1 GPIO_PIN(0, 3) |
Pin Definition for D1. | |
#define | ARDUINO_PIN_2 GPIO_PIN(0, 28) |
Pin Definition for D2. | |
#define | ARDUINO_PIN_3 GPIO_PIN(0, 29) |
Pin Definition for D3. | |
#define | ARDUINO_PIN_4 GPIO_PIN(0, 4) |
Pin Definition for D4. | |
#define | ARDUINO_PIN_5 GPIO_PIN(0, 5) |
Pin Definition for D5. | |
#define | ARDUINO_PIN_6 GPIO_PIN(1, 11) |
Pin Definition for D6. | |
#define | ARDUINO_PIN_7 GPIO_PIN(1, 12) |
Pin Definition for D7. | |
#define | ARDUINO_PIN_8 GPIO_PIN(1, 13) |
Pin Definition for D8. | |
#define | ARDUINO_PIN_9 GPIO_PIN(1, 14) |
Pin Definition for D9. | |
#define | ARDUINO_PIN_10 GPIO_PIN(1, 15) |
Pin Definition for D10. | |
#define | ARDUINO_PIN_11 GPIO_PIN(0, 26) |
Pin Definition for Red LED. | |
#define | ARDUINO_PIN_12 GPIO_PIN(0, 6) |
Pin Definition for Blue LED. | |
#define | ARDUINO_PIN_13 GPIO_PIN(0, 30) |
Pin Definition for Green LED. | |
#define | ARDUINO_PIN_LAST 13 |
Last Arduino Pin. | |
Aliases for analog pins | |
#define | ARDUINO_PIN_A0 ARDUINO_PIN_0 |
Pin Definition for A0. | |
#define | ARDUINO_PIN_A1 ARDUINO_PIN_1 |
Pin Definition for A1. | |
#define | ARDUINO_PIN_A2 ARDUINO_PIN_2 |
Pin Definition for A2. | |
#define | ARDUINO_PIN_A3 ARDUINO_PIN_3 |
Pin Definition for A3. | |
#define | ARDUINO_PIN_A4 ARDUINO_PIN_4 |
Pin Definition for A4. | |
#define | ARDUINO_PIN_A5 ARDUINO_PIN_5 |
Pin Definition for A5. | |
Mapping of Arduino analog pins to RIOT ADC lines | |
#define | ARDUINO_A0 ADC_LINE(0) |
ADC Channel 0 for A0. | |
#define | ARDUINO_A1 ADC_LINE(1) |
ADC Channel 1 for A1. | |
#define | ARDUINO_A2 ADC_LINE(4) |
ADC Channel 4 for A2. | |
#define | ARDUINO_A3 ADC_LINE(5) |
ADC Channel 5 for A3. | |
#define | ARDUINO_A4 ADC_LINE(2) |
ADC Channel 2 for A4. | |
#define | ARDUINO_A5 ADC_LINE(3) |
ADC Channel 3 for A5. | |
#define | ARDUINO_ANALOG_PIN_LAST 5 |
Last Analog Input Pin. | |
#define ARDUINO_A0 ADC_LINE(0) |
ADC Channel 0 for A0.
Definition at line 117 of file arduino_iomap.h.
#define ARDUINO_A1 ADC_LINE(1) |
ADC Channel 1 for A1.
Definition at line 118 of file arduino_iomap.h.
#define ARDUINO_A2 ADC_LINE(4) |
ADC Channel 4 for A2.
Definition at line 119 of file arduino_iomap.h.
#define ARDUINO_A3 ADC_LINE(5) |
ADC Channel 5 for A3.
Definition at line 120 of file arduino_iomap.h.
#define ARDUINO_A4 ADC_LINE(2) |
ADC Channel 2 for A4.
Definition at line 121 of file arduino_iomap.h.
#define ARDUINO_A5 ADC_LINE(3) |
ADC Channel 3 for A5.
Definition at line 122 of file arduino_iomap.h.
#define ARDUINO_ANALOG_PIN_LAST 5 |
Last Analog Input Pin.
Definition at line 124 of file arduino_iomap.h.
#define ARDUINO_I2C_DEV I2C_DEV(0) |
Standard I2C bus for general purpose use.
Definition at line 51 of file arduino_iomap.h.
#define ARDUINO_LED (11) |
Use the Red LED.
Definition at line 58 of file arduino_iomap.h.
#define ARDUINO_PIN_0 GPIO_PIN(0, 2) |
Pin Definition for D0.
Definition at line 66 of file arduino_iomap.h.
#define ARDUINO_PIN_1 GPIO_PIN(0, 3) |
Pin Definition for D1.
Definition at line 67 of file arduino_iomap.h.
#define ARDUINO_PIN_10 GPIO_PIN(1, 15) |
Pin Definition for D10.
Definition at line 78 of file arduino_iomap.h.
#define ARDUINO_PIN_11 GPIO_PIN(0, 26) |
Pin Definition for Red LED.
Definition at line 81 of file arduino_iomap.h.
#define ARDUINO_PIN_12 GPIO_PIN(0, 6) |
Pin Definition for Blue LED.
Definition at line 82 of file arduino_iomap.h.
#define ARDUINO_PIN_13 GPIO_PIN(0, 30) |
Pin Definition for Green LED.
Definition at line 83 of file arduino_iomap.h.
#define ARDUINO_PIN_2 GPIO_PIN(0, 28) |
Pin Definition for D2.
Definition at line 68 of file arduino_iomap.h.
#define ARDUINO_PIN_3 GPIO_PIN(0, 29) |
Pin Definition for D3.
Definition at line 69 of file arduino_iomap.h.
#define ARDUINO_PIN_4 GPIO_PIN(0, 4) |
Pin Definition for D4.
Definition at line 70 of file arduino_iomap.h.
#define ARDUINO_PIN_5 GPIO_PIN(0, 5) |
Pin Definition for D5.
Definition at line 71 of file arduino_iomap.h.
#define ARDUINO_PIN_6 GPIO_PIN(1, 11) |
Pin Definition for D6.
Definition at line 72 of file arduino_iomap.h.
#define ARDUINO_PIN_7 GPIO_PIN(1, 12) |
Pin Definition for D7.
Definition at line 75 of file arduino_iomap.h.
#define ARDUINO_PIN_8 GPIO_PIN(1, 13) |
Pin Definition for D8.
Definition at line 76 of file arduino_iomap.h.
#define ARDUINO_PIN_9 GPIO_PIN(1, 14) |
Pin Definition for D9.
Definition at line 77 of file arduino_iomap.h.
#define ARDUINO_PIN_A0 ARDUINO_PIN_0 |
Pin Definition for A0.
Definition at line 92 of file arduino_iomap.h.
#define ARDUINO_PIN_A1 ARDUINO_PIN_1 |
Pin Definition for A1.
Definition at line 93 of file arduino_iomap.h.
#define ARDUINO_PIN_A2 ARDUINO_PIN_2 |
Pin Definition for A2.
Definition at line 94 of file arduino_iomap.h.
#define ARDUINO_PIN_A3 ARDUINO_PIN_3 |
Pin Definition for A3.
Definition at line 95 of file arduino_iomap.h.
#define ARDUINO_PIN_A4 ARDUINO_PIN_4 |
Pin Definition for A4.
Definition at line 96 of file arduino_iomap.h.
#define ARDUINO_PIN_A5 ARDUINO_PIN_5 |
Pin Definition for A5.
Definition at line 97 of file arduino_iomap.h.
#define ARDUINO_PIN_LAST 13 |
Last Arduino Pin.
Definition at line 85 of file arduino_iomap.h.
#define ARDUINO_SPI_DEV SPI_DEV(0) |
Standard SPI bus for general purpose use.
Definition at line 44 of file arduino_iomap.h.
#define ARDUINO_UART_DEV UART_UNDEF |
The Xiao nRF52840 uses USB-CDC-ACM by default.
Definition at line 37 of file arduino_iomap.h.