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.
Fork of Hexi_Serial_Example by
Revision 0:79c0c4cd1ab3, committed 2016-08-15
- Comitter:
- GregC
- Date:
- Mon Aug 15 03:58:02 2016 +0000
- Child:
- 1:cad368af277b
- Commit message:
- Hexiwear Serial project
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.gitignore Mon Aug 15 03:58:02 2016 +0000 @@ -0,0 +1,4 @@ +.build +.mbed +projectfiles +*.py*
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Aug 15 03:58:02 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+DigitalOut myled(LED_BLUE);
+Serial pc(USBTX, USBRX);
+
+int main()
+{
+ int i = 0;
+ 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-os.lib Mon Aug 15 03:58:02 2016 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#0712b8adf6bbc7eb796d5dac26f95d79d40745ef
