|
30 | 30 | #define NUM_ANALOG_INPUTS 1
|
31 | 31 | #define ESP_PINS_OFFSET 20
|
32 | 32 |
|
33 |
| -static const uint8_t SDA = 4; |
34 |
| -static const uint8_t SCL = 5; |
35 |
| - |
36 |
| -static const uint8_t SS = 12; |
37 |
| -static const uint8_t MOSI = 13; |
38 |
| -static const uint8_t MISO = 14; |
39 |
| -static const uint8_t SCK = 15; |
40 |
| - |
41 |
| -static const uint8_t A0 = 14; |
42 |
| -static const uint8_t A1 = 15; |
43 |
| -static const uint8_t A2 = 16; |
44 |
| -static const uint8_t A3 = 17; |
45 |
| -static const uint8_t A4 = 18; |
46 |
| -static const uint8_t A5 = 19; |
47 |
| -static const uint8_t A6 = 20; |
48 |
| -static const uint8_t A7 = 21; |
| 33 | +#define PIN_WIRE_SDA (4) |
| 34 | +#define PIN_WIRE_SCL (5) |
| 35 | + |
| 36 | +static const uint8_t SDA = PIN_WIRE_SDA; |
| 37 | +static const uint8_t SCL = PIN_WIRE_SCL; |
| 38 | + |
| 39 | +#define PIN_SPI_SS (12) |
| 40 | +#define PIN_SPI_MOSI (13) |
| 41 | +#define PIN_SPI_MISO (14) |
| 42 | +#define PIN_SPI_SCK (15) |
| 43 | + |
| 44 | +static const uint8_t SS = PIN_SPI_SS; |
| 45 | +static const uint8_t MOSI = PIN_SPI_MOSI; |
| 46 | +static const uint8_t MISO = PIN_SPI_MISO; |
| 47 | +static const uint8_t SCK = PIN_SPI_SCK; |
| 48 | + |
| 49 | +#define PIN_A0 (14) |
| 50 | +#define PIN_A1 (15) |
| 51 | +#define PIN_A2 (16) |
| 52 | +#define PIN_A3 (17) |
| 53 | +#define PIN_A4 (18) |
| 54 | +#define PIN_A5 (19) |
| 55 | +#define PIN_A6 (20) |
| 56 | +#define PIN_A7 (21) |
| 57 | + |
| 58 | +static const uint8_t A0 = PIN_A0; |
| 59 | +static const uint8_t A1 = PIN_A1; |
| 60 | +static const uint8_t A2 = PIN_A2; |
| 61 | +static const uint8_t A3 = PIN_A3; |
| 62 | +static const uint8_t A4 = PIN_A4; |
| 63 | +static const uint8_t A5 = PIN_A5; |
| 64 | +static const uint8_t A6 = PIN_A6; |
| 65 | +static const uint8_t A7 = PIN_A7; |
49 | 66 |
|
50 | 67 | static const uint8_t E0 = ESP_PINS_OFFSET + 0;
|
51 | 68 | static const uint8_t E1 = ESP_PINS_OFFSET + 1;
|
|
0 commit comments