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: SDFileSystem max32630fthr USBDevice
Fork of FTHR_SD_Demo by
Diff: main.cpp
- Revision:
- 6:96d8d823e292
- Parent:
- 4:bafcac667ef6
- Child:
- 9:36ba3626aab7
--- a/main.cpp Fri Feb 03 23:13:13 2017 +0000
+++ b/main.cpp Mon Feb 06 23:44:02 2017 +0000
@@ -2,7 +2,7 @@
#include "max32630fthr.h"
#include "SDFileSystem.h"
-MAX32630FTHR pegasus;
+MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
DigitalOut rLED(LED1);
DigitalOut gLED(LED2);
@@ -13,11 +13,8 @@
// (note the calls to Thread::wait below for delays)
int main()
{
- gLED = LED_OFF;
+ gLED = LED_ON;
rLED = LED_ON;
-
- pegasus.init(MAX32630FTHR::VIO_3V3);
- gLED = LED_ON;
FILE *fp = fopen("/sd/myfile.txt", "w");
fprintf(fp, "Hello World!\n");
