Skip to content

Commit 33bc209

Browse files
committed
Add SPI support
1 parent 6817cc8 commit 33bc209

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PortentaBreakoutCarrier.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3030
#include "pins_arduino.h"
3131
#include "mbed.h"
3232
#include "Wire.h"
33+
#include "SPI.h"
3334
#include "utility/portentaBreakoutAnalog.h"
3435

3536
#define LAST_ARDUINO_PIN_NUMBER LEDB + 1
@@ -210,13 +211,15 @@ class BreakoutCarrierClass {
210211
UART UART1;
211212
UART UART2;
212213
UART UART3;
214+
MbedSPI SPI_2;
213215
BreakoutCarrierClass() : I2C_0(PH_8,PH_7),
214216
I2C_1(PB_7,PB_6),
215217
I2C_2(PH_12,PH_11),
216218
UART0(PA_0, PI_9, NC/*PI_10*/, NC/*PI_13*/),
217219
UART1(PA_9, PA_10, NC/*PI_14*/, NC/*PI_15*/),
218220
UART2(PG_14, PG_9, NC, NC),
219-
UART3(PJ_8, PJ_9, NC, NC)
221+
UART3(PJ_8, PJ_9, NC, NC),
222+
SPI_2(PC_2, PC_3, PI_1)
220223
{
221224
}
222225
};

0 commit comments

Comments
 (0)