Skip to content

Commit

Permalink
Added arduino uno backward compatibility pins (#8833)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Procházka <[email protected]>
  • Loading branch information
alexceltare2 and P-R-O-C-H-Y authored Nov 17, 2023
1 parent 6cc0e9d commit 14b0b04
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions variants/doitESPduino32/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,42 @@ static const uint8_t CLK = 6;
static const uint8_t SD0 = 7;
static const uint8_t SD1 = 8;

//Arduino Uno backward compatibility
static const uint8_t A0 = 2;
static const uint8_t A1 = 4;
static const uint8_t A2 = 35;
static const uint8_t A3 = 34;
static const uint8_t A4 = 36;
static const uint8_t A5 = 39;

static const uint8_t D0 = 3;
static const uint8_t D1 = 1;
static const uint8_t D2 = 26;
static const uint8_t D3 = 25;
static const uint8_t D4 = 17;
static const uint8_t D5 = 16;
static const uint8_t D6 = 27;
static const uint8_t D7 = 14;
static const uint8_t D8 = 12;
static const uint8_t D9 = 13;
static const uint8_t D10 = 5;
static const uint8_t D11 = 23;
static const uint8_t D12 = 19;
static const uint8_t D13 = 18;

static const uint8_t TX = 1;
static const uint8_t RX = 3;

#define PIN_WIRE_SDA SDA // backward compatibility
#define PIN_WIRE_SCL SCL // backward compatibility

#define PIN_SPI_SS SS // backward compatibility
#define PIN_SPI_MOSI MOSI // backward compatibility
#define PIN_SPI_MISO MISO // backward compatibility
#define PIN_SPI_SCK SCK // backward compatibility

#define PIN_A0 A0 // backward compatibility

// ESP-WROOM-32 does not have GPIO 14, 20(NC), 24, 28, 29, 30, 31, 36, 37, 38, 40+
// All pins should be PWM capable. The board is a clone of WeMos D1 R32.

Expand Down

0 comments on commit 14b0b04

Please sign in to comment.