commit for cli test
Revision 0:14b6781d6f40, committed 2017-02-25
- Comitter:
- Stephen_NewVistas
- Date:
- Sat Feb 25 19:39:10 2017 +0000
- Child:
- 1:6c3527fb3bc1
- Commit message:
- Initial commit
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Feb 25 19:39:10 2017 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "rtos.h"
+
+DigitalOut led( LED2 );
+Serial pc( USBTX , USBRX );
+
+int main( void ){
+
+ led = 1;
+ pc.baud( 115200 );
+
+ while( true ){
+ wait( 0.5 );
+ led = 0;
+ pc.printf("LED = %d \n\r",led.read());
+ wait( 0.5 );
+ led = 1;
+ pc.printf("LED = %d \n\r",led.read());
+ }
+
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Sat Feb 25 19:39:10 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Feb 25 19:39:10 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/ef9c61f8c49f \ No newline at end of file