Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: max32625pico maxim-dev mbed-rtos USBDevice
Fork of PICO_USB_I2C_SPI by
Diff: main.cpp
- Revision:
- 6:bff339370df6
- Parent:
- 5:2436ae0a9eb1
- Child:
- 7:5de026dd3a82
--- a/main.cpp Thu Dec 08 21:10:46 2016 +0000
+++ b/main.cpp Thu Dec 08 21:44:01 2016 +0000
@@ -15,7 +15,8 @@
// Serial Interfaces
I2C i2c(P3_4, P3_5);
-SPI spi(P5_1, P5_2, P5_0, P5_3);
+SPI spi(P5_1, P5_2, P5_0);
+DigitalOut ssel(P5_3);
// Threads
Thread threadUSB;
@@ -105,7 +106,7 @@
pegasus.init();
// Serial Interface Setup
- serInt.init(&i2c, &spi);
+ serInt.init(&i2c, &spi, &ssel);
rLED = LED_OFF;
