@@ -74,9 +74,6 @@ static const uint8_t A7 = PIN_A7;
74
74
#define D20 (20u )
75
75
#define D21 (21u )
76
76
77
- // DACs
78
- #define DAC (A6)
79
-
80
77
// Serial
81
78
#define PIN_SERIAL_RX (22ul )
82
79
#define PIN_SERIAL_TX (21ul )
@@ -86,19 +83,19 @@ static const uint8_t A7 = PIN_A7;
86
83
#define SERIAL1_RX (digitalPinToPinName(PIN_SERIAL_RX))
87
84
88
85
// SPI
89
- #define PIN_SPI_MISO (10u )
90
- #define PIN_SPI_MOSI (8u )
91
- #define PIN_SPI_SCK (9u )
92
- #define PIN_SPI_SS (7u )
86
+ #define PIN_SPI_MISO (0u )
87
+ #define PIN_SPI_MOSI (A6 )
88
+ #define PIN_SPI_SCK (A5 )
89
+ #define PIN_SPI_SS (1u )
93
90
94
91
static const uint8_t SS = PIN_SPI_SS; // SPI Slave SS not used. Set here only for reference.
95
92
static const uint8_t MOSI = PIN_SPI_MOSI;
96
93
static const uint8_t MISO = PIN_SPI_MISO;
97
94
static const uint8_t SCK = PIN_SPI_SCK;
98
95
99
96
// Wire
100
- #define PIN_WIRE_SDA (11u )
101
- #define PIN_WIRE_SCL (12u )
97
+ #define PIN_WIRE_SDA (38u )
98
+ #define PIN_WIRE_SCL (29u )
102
99
103
100
#define RPC_SERIAL 1
104
101
#define HAS_UNIQUE_ISERIAL_DESCRIPTOR
@@ -111,17 +108,12 @@ static const uint8_t SCK = PIN_SPI_SCK;
111
108
uint8_t getUniqueSerialNumber (uint8_t * name);
112
109
void _ontouch1200bps_ ();
113
110
114
- #define WIRE_HOWMANY 0
115
-
116
- #define I2C_SDA (digitalPinToPinName(PIN_WIRE_SDA))
117
- #define I2C_SCL (digitalPinToPinName(PIN_WIRE_SCL))
111
+ #define WIRE_HOWMANY 1
118
112
119
- #define I2C_SDA_INTERNAL (PB_7)
120
- #define I2C_SCL_INTERNAL (PB_6)
121
- #define I2C_SDA1 I2C_SDA_INTERNAL
122
- #define I2C_SCL1 I2C_SCL_INTERNAL
113
+ #define I2C_SDA (PC_9) // marked as PWM8
114
+ #define I2C_SCL (PA_8) // marked as PWM6
123
115
124
- #define SPI_HOWMANY 0
116
+ #define SPI_HOWMANY 1
125
117
126
118
#define SPI_MISO (digitalPinToPinName(PIN_SPI_MISO))
127
119
#define SPI_MOSI (digitalPinToPinName(PIN_SPI_MOSI))
0 commit comments