Andrew Sims
/
4180_LAB_1_1
Lab 1.1
Revision 0:a3641333c2e2, committed 2015-09-02
- Comitter:
- asims35
- Date:
- Wed Sep 02 02:29:00 2015 +0000
- Commit message:
- initial seed
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 Wed Sep 02 02:29:00 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" + +DigitalIn DIP_IN(p30); +DigitalOut RED_LED(p21); + +int main() { + while(1) { + if(DIP_IN){ + RED_LED=1; + } + else{ + RED_LED=0; + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Sep 02 02:29:00 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ed44a420e5c \ No newline at end of file