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:
- 1:fbc7acd77a77
- Parent:
- 0:acdc1ce79ab5
- Child:
- 2:e29db7517d42
--- a/main.cpp Tue Oct 10 20:55:11 2017 +0000
+++ b/main.cpp Tue Oct 10 21:00:01 2017 +0000
@@ -1,13 +1,13 @@
#include "mbed.h"
- * #include "HeapBlockDevice.h"
- *
- * HeapBlockDevice bd(2048, 512); // 2048 bytes with a block size of 512 bytes
- * uint8_t block[512] = "Hello World!\n";
- *
- * int main() {
- * bd.init();
- * bd.program(block, 0);
- * bd.read(block, 0);
- * printf("%s", block);
- * bd.deinit();
- * }
\ No newline at end of file
+#include "HeapBlockDevice.h"
+
+HeapBlockDevice bd(2048, 512); // 2048 bytes with a block size of 512 bytes
+uint8_t block[512] = "Hello World!\n";
+
+int main() {
+ bd.init();
+ bd.program(block, 0);
+ bd.read(block, 0);
+ printf("%s", block);
+ bd.deinit();
+}
\ No newline at end of file