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 USBDevice
Diff: main.cpp
- 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);