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.
main.cpp@0:2c2981e27ad1, 2016-03-27 (annotated)
- Committer:
- almeer
- Date:
- Sun Mar 27 17:46:06 2016 +0000
- Revision:
- 0:2c2981e27ad1
- Child:
- 1:077d8e1f21a8
rrrr
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| almeer | 0:2c2981e27ad1 | 1 | /* Program Example 10.4: writing data to an SD card |
| almeer | 0:2c2981e27ad1 | 2 | */ |
| almeer | 0:2c2981e27ad1 | 3 | #include "mbed.h" |
| almeer | 0:2c2981e27ad1 | 4 | |
| almeer | 0:2c2981e27ad1 | 5 | Serial pc(USBTX, USBRX); |
| almeer | 0:2c2981e27ad1 | 6 | int main() |
| almeer | 0:2c2981e27ad1 | 7 | { |
| almeer | 0:2c2981e27ad1 | 8 | // pc.printf("Could not open file for write\n"); // error if no pointer |
| almeer | 0:2c2981e27ad1 | 9 | // pc.printf("SD card file successfully opened\n"); // if pointer ok |
| almeer | 0:2c2981e27ad1 | 10 | pc.printf("Hello World!"); |
| almeer | 0:2c2981e27ad1 | 11 | |
| almeer | 0:2c2981e27ad1 | 12 | } |