Dependencies: mbed
Revision 0:dfd9a86fd08c, committed 2017-03-01
- Comitter:
- jderemer3
- Date:
- Wed Mar 01 16:39:17 2017 +0000
- Commit message:
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 |
diff -r 000000000000 -r dfd9a86fd08c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Mar 01 16:39:17 2017 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalOut Ctrl(p8); //Solenoid output control bit + +int main() { + while(1) { + Ctrl = 1; //ON + myled = 1; + wait(0.5); + Ctrl = 0; //OFF + myled = 0; + wait(2); + } +} \ No newline at end of file
diff -r 000000000000 -r dfd9a86fd08c mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Mar 01 16:39:17 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/176b8275d35d \ No newline at end of file