Lab that has to do with basic IO on mbed.
Dependencies: DebounceIn mbed PinDetect
Diff: JessesLab1/main.cpp
- Revision:
- 34:2749d3f57060
- Parent:
- 33:275385014ba9
- Child:
- 36:d96476f81b9f
--- a/JessesLab1/main.cpp Fri Jan 15 20:10:15 2016 +0000 +++ b/JessesLab1/main.cpp Fri Jan 15 20:17:47 2016 +0000 @@ -1,29 +1,23 @@ +/* <- remove this if you want to code this and comment Georges #include "mbed.h" -#include "DebounceIn.h" - +//#include "DebounceIn.h" -DebounceIn pb(p8); + DigitalIn pb(p8); DigitalOut led(LED1); int main() { -while(1) { while(1) { - if(!pb) { if(pb) { - led = !pb; led = !led; } wait(0.25); } - else{ - led = 0; - } } - -} \ No newline at end of file + +*/ \ No newline at end of file