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:
39:8bd6d99afa67
Parent:
38:009f37aef75f
Child:
40:430e3884226a

File content as of revision 39:8bd6d99afa67:

//* <- remove this if you want to code this and comment Georges
#include "mbed.h"
#include "DebounceIn.h"
#include "PinDetect.h"

PinDetect pb(p8);
DigitalOut led(p21);

int main() {

  pb.mode(PullUp);

  while(1) {

    led = !pb;

  }
}