Lab that has to do with basic IO on mbed.
Dependencies: DebounceIn mbed PinDetect
JessesLab1/main.cpp
- Committer:
- jbaker66
- Date:
- 2016-01-18
- Revision:
- 37:dd0d72140b17
- Parent:
- 36:d96476f81b9f
- Child:
- 38:009f37aef75f
File content as of revision 37:dd0d72140b17:
//* <- remove this if you want to code this and comment Georges #include "mbed.h" #include "DebounceIn.h" #include "PinDetect.h" DigitalIn pb(p8); DigitalOut led(LED1); int main() { pb.mode(PullUp); while(1) { led = pb; } }