Skip to content

Commit 006c577

Browse files
committed
fixup! boards/esp32s2-lilygo-ttgo-t8: completion of Arduino I/O mapping
1 parent 9061bb0 commit 006c577

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

boards/esp32s2-lilygo-ttgo-t8/include/arduino_iomap.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ extern "C" {
8080
#define ARDUINO_PIN_DAC1 ARDUINO_PIN_21 /**< Arduino pin DAC1 */
8181
/** @} */
8282

83+
/**
84+
* @name Mapping of Arduino analog pins to RIOT ADC lines
85+
* @{
86+
*/
87+
#define ARDUINO_A0 ADC_LINE(0) /**< ADC line for Arduino pin A0 */
88+
#define ARDUINO_A1 ADC_LINE(1) /**< ADC line for Arduino pin A1 */
89+
#define ARDUINO_A2 ADC_LINE(2) /**< ADC line for Arduino pin A2 */
90+
#define ARDUINO_A3 ADC_LINE(3) /**< ADC line for Arduino pin A3 */
91+
#define ARDUINO_A4 ADC_LINE(5) /**< ADC line for Arduino pin A4 */
92+
#define ARDUINO_A5 ADC_LINE(6) /**< ADC line for Arduino pin A5 */
93+
94+
#define ARDUINO_ANALOG_PIN_LAST 5
95+
/** @} */
96+
8397
/**
8498
* @name Mapping of Arduino DAC pins to RIOT DAC lines
8599
* @{

0 commit comments

Comments
 (0)