@@ -53,6 +53,42 @@ static const uint8_t CLK = 6;
53
53
static const uint8_t SD0 = 7 ;
54
54
static const uint8_t SD1 = 8 ;
55
55
56
+ //Arduino Uno backward compatibility
57
+ static const uint8_t A0 = 2 ;
58
+ static const uint8_t A1 = 4 ;
59
+ static const uint8_t A2 = 35 ;
60
+ static const uint8_t A3 = 34 ;
61
+ static const uint8_t A4 = 36 ;
62
+ static const uint8_t A5 = 39 ;
63
+
64
+ static const uint8_t D0 = 3 ;
65
+ static const uint8_t D1 = 1 ;
66
+ static const uint8_t D2 = 26 ;
67
+ static const uint8_t D3 = 25 ;
68
+ static const uint8_t D4 = 17 ;
69
+ static const uint8_t D5 = 16 ;
70
+ static const uint8_t D6 = 27 ;
71
+ static const uint8_t D7 = 14 ;
72
+ static const uint8_t D8 = 12 ;
73
+ static const uint8_t D9 = 13 ;
74
+ static const uint8_t D10 = 5 ;
75
+ static const uint8_t D11 = 23 ;
76
+ static const uint8_t D12 = 19 ;
77
+ static const uint8_t D13 = 18 ;
78
+
79
+ static const uint8_t TX = 1 ;
80
+ static const uint8_t RX = 3 ;
81
+
82
+ #define PIN_WIRE_SDA SDA // backward compatibility
83
+ #define PIN_WIRE_SCL SCL // backward compatibility
84
+
85
+ #define PIN_SPI_SS SS // backward compatibility
86
+ #define PIN_SPI_MOSI MOSI // backward compatibility
87
+ #define PIN_SPI_MISO MISO // backward compatibility
88
+ #define PIN_SPI_SCK SCK // backward compatibility
89
+
90
+ #define PIN_A0 A0 // backward compatibility
91
+
56
92
// ESP-WROOM-32 does not have GPIO 14, 20(NC), 24, 28, 29, 30, 31, 36, 37, 38, 40+
57
93
// All pins should be PWM capable. The board is a clone of WeMos D1 R32.
58
94
0 commit comments