Skip to content

Commit ab7e109

Browse files
acosinworkd-a-v
authored andcommitted
A0 pin number can be changed in the variants (#4778)
1 parent 1a9403d commit ab7e109

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

variants/generic/common.h

+2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ static const uint8_t MOSI = PIN_SPI_MOSI;
4747
static const uint8_t MISO = PIN_SPI_MISO;
4848
static const uint8_t SCK = PIN_SPI_SCK;
4949

50+
#ifndef PIN_A0
5051
#define PIN_A0 (17)
52+
#endif /* PIN_A0 */
5153

5254
static const uint8_t A0 = PIN_A0;
5355

0 commit comments

Comments
 (0)