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.
Revision 0:948b4deb5b40, committed 2019-03-22
- Comitter:
- Sim
- Date:
- Fri Mar 22 18:12:07 2019 +0000
- Commit message:
- old library
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Mar 22 18:12:07 2019 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+DigitalOut myled(LED_GREEN);
+Serial pc(USBTX, USBRX);
+
+int main()
+{
+ int i = 0;
+ pc.baud(115200);
+ pc.printf("Hello World!\n");
+
+ while (true) {
+ wait(0.5f); // wait a small period of time
+ pc.printf("%d \n", i); // print the value of variable i
+ i++; // increment the variable
+ myled = !myled; // toggle a led
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Mar 22 18:12:07 2019 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae \ No newline at end of file