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.
Diff: main.cpp
- Revision:
- 0:2c2981e27ad1
- Child:
- 1:077d8e1f21a8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Mar 27 17:46:06 2016 +0000
@@ -0,0 +1,12 @@
+/* Program Example 10.4: writing data to an SD card
+*/
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX);
+int main()
+{
+ // pc.printf("Could not open file for write\n"); // error if no pointer
+ // pc.printf("SD card file successfully opened\n"); // if pointer ok
+ pc.printf("Hello World!");
+
+}
\ No newline at end of file