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:
- 11:b9d7ab7626b5
- Parent:
- 10:a3f06fa13bda
- Child:
- 13:fed6ff32bf5d
--- a/main.cpp Thu Dec 15 17:43:33 2016 +0000
+++ b/main.cpp Fri Dec 16 01:00:01 2016 +0000
@@ -8,7 +8,7 @@
#define USB_MAX_RESP_LENGTH 255
#define USB_MAX_CMD_LENGTH 255
-MAX32630FTHR pegasus;
+MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
// Virtual serial port over USB
USBSerial microUSB;
@@ -105,8 +105,11 @@
gLED = LED_ON;
bLED = LED_OFF;
-// Board Initialization
- pegasus.init(MAX32630FTHR::VIO_3V3);
+/* Board Initialization
+ * This is done automatically if you specify vio
+ * when you instantiate the MAX32630FTHR library
+ */
+// pegasus.init(MAX32630FTHR::VIO_3V3);
// Initialize primary SPI CS
gpio[0].write(1);