Lab that has to do with basic IO on mbed.
Dependencies: DebounceIn mbed PinDetect
JessesLab1/main.cpp
- Committer:
- Jesse Baker
- Date:
- 2016-01-17
- Revision:
- 36:d96476f81b9f
- Parent:
- 34:2749d3f57060
- Child:
- 37:dd0d72140b17
File content as of revision 36:d96476f81b9f:
//* <- 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; } }