Lab that has to do with basic IO on mbed.
Dependencies: DebounceIn mbed PinDetect
Diff: JessesLab1/main.cpp
- Revision:
- 38:009f37aef75f
- Parent:
- 37:dd0d72140b17
- Child:
- 39:8bd6d99afa67
--- a/JessesLab1/main.cpp Mon Jan 18 02:40:59 2016 +0000 +++ b/JessesLab1/main.cpp Sun Jan 17 21:52:52 2016 -0500 @@ -3,7 +3,7 @@ #include "DebounceIn.h" #include "PinDetect.h" -DigitalIn pb(p8); +PinDetect pb(p8); DigitalOut led(LED1); int main() { @@ -12,7 +12,7 @@ while(1) { - led = pb; + led = !pb; } -} \ No newline at end of file +}