Skip to content

Commit fa0d331

Browse files
Merge pull request #15 from jpconstantineau/fix-nicenano
added serial, i2c and spi definitions
2 parents ae95e6a + 04cddb7 commit fa0d331

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

variants/nice_nano/variant.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,31 +100,31 @@ static const uint8_t AREF = PIN_AREF;
100100
*/
101101

102102
// Arduino Header D0, D1
103-
//#define PIN_SERIAL1_RX (33) // P1.01
104-
//#define PIN_SERIAL1_TX (34) // P1.02
103+
#define PIN_SERIAL1_RX (8) // P0.08
104+
#define PIN_SERIAL1_TX (6) // P0.06
105105

106106

107107
/*
108108
* SPI Interfaces
109109
*/
110-
//#define SPI_INTERFACES_COUNT 1
110+
#define SPI_INTERFACES_COUNT 1
111111

112-
///#define PIN_SPI_MISO (46)
113-
//#define PIN_SPI_MOSI (45)
114-
//#define PIN_SPI_SCK (47)
112+
#define PIN_SPI_MISO (43) // P1.11
113+
#define PIN_SPI_MOSI (10) // P0.10
114+
#define PIN_SPI_SCK (45) // P1.13
115115

116-
///static const uint8_t SS = 44 ;
117-
//static const uint8_t MOSI = PIN_SPI_MOSI ;
118-
//static const uint8_t MISO = PIN_SPI_MISO ;
119-
//static const uint8_t SCK = PIN_SPI_SCK ;
116+
static const uint8_t SS = (9) ; // 0.09
117+
static const uint8_t MOSI = PIN_SPI_MOSI ;
118+
static const uint8_t MISO = PIN_SPI_MISO ;
119+
static const uint8_t SCK = PIN_SPI_SCK ;
120120

121121
/*
122122
* Wire Interfaces
123123
*/
124-
//#define WIRE_INTERFACES_COUNT 1
124+
#define WIRE_INTERFACES_COUNT 1
125125

126-
//#define PIN_WIRE_SDA (26)
127-
//#define PIN_WIRE_SCL (27)
126+
#define PIN_WIRE_SDA (17) // 0.17
127+
#define PIN_WIRE_SCL (20) // 0.20
128128

129129

130130

0 commit comments

Comments
 (0)