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 SerialInterface USBDevice
Diff: main.cpp
- Revision:
- 10:a3f06fa13bda
- Parent:
- 9:e59eb5f5ce32
- Child:
- 11:b9d7ab7626b5
--- a/main.cpp Thu Dec 15 03:57:28 2016 +0000
+++ b/main.cpp Thu Dec 15 17:43:33 2016 +0000
@@ -23,7 +23,7 @@
AnalogIn ain[] = {AIN_0, AIN_1, AIN_2, AIN_3, AIN_4, AIN_5, AIN_6, AIN_7};
// Serial Interface Adapter
-SerialInterface serInt(i2c, spi);
+SerialInterface serInt(i2c, spi, gpio, ain);
// Threads
Thread threadUSB;
@@ -108,8 +108,7 @@
// Board Initialization
pegasus.init(MAX32630FTHR::VIO_3V3);
-// Serial Interface Setup
- serInt.init(gpio, ain);
+// Initialize primary SPI CS
gpio[0].write(1);
gpio[0].output();