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.
Dependencies: mbed
Diff: Command.h
- Revision:
- 3:ec4615b81eeb
- Parent:
- 2:04d8e2ad8cff
- Child:
- 10:08462822ab8e
--- a/Command.h Sun Aug 31 08:34:56 2014 +0000 +++ b/Command.h Wed Sep 03 09:04:57 2014 +0000 @@ -35,15 +35,19 @@ void execute(int arg_val) { newline(); - pc.puts("OK"); + if(arg_val == 1) { led1 = 1; + pc.puts("OK"); } else if (arg_val == 2) { led2 = 1; + pc.puts("OK"); } else if (arg_val == 3) { led3 = 1; + pc.puts("OK"); } else if (arg_val == 4) { led4 = 1; + pc.puts("OK"); } } }; @@ -57,15 +61,19 @@ void execute(int arg_val) { newline(); - pc.puts("OK"); + if(arg_val == 1) { led1 = 0; + pc.puts("OK"); } else if (arg_val == 2) { led2 = 0; + pc.puts("OK"); } else if (arg_val == 3) { led3 = 0; + pc.puts("OK"); } else if (arg_val == 4) { led4 = 0; + pc.puts("OK"); } } };