Demo for MAX32625PICO board library

Dependencies:   USBDevice max32625pico

Fork of PICO_self_test by Greg Steiert

Revision:
3:7264c8044625
Parent:
1:464c8b3634dc
Child:
4:1c6819a42db0
--- a/main.cpp	Wed Nov 16 18:28:00 2016 +0000
+++ b/main.cpp	Sun Nov 20 23:58:11 2016 +0000
@@ -2,6 +2,8 @@
 #include "max32630fthr.h"
 #include "USBMSD_SD.h"
 
+MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
+
 DigitalOut rLED(LED1);
 DigitalOut gLED(LED2);
 
@@ -11,13 +13,8 @@
 {
     gLED = LED_OFF;
     rLED = LED_ON;
-    max32630fthrInit();
-    Thread::wait(100);
+    pegasus.init();
 
-    vddioh(P0_4, TRUE);
-    vddioh(P0_5, TRUE);
-    vddioh(P0_6, TRUE);
-    vddioh(P0_7, TRUE);
     gLED = LED_ON;
     Thread::wait(100);