Lab that has to do with basic IO on mbed.
Dependencies: DebounceIn mbed PinDetect
JessesLab1/main.cpp
- Committer:
- gtzintzarov3
- Date:
- 2016-01-15
- Revision:
- 33:275385014ba9
- Child:
- 34:2749d3f57060
File content as of revision 33:275385014ba9:
#include "mbed.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; } } }