Lab that has to do with basic IO on mbed.

Dependencies:   DebounceIn mbed PinDetect

Committer:
gtzintzarov3
Date:
Fri Jan 15 20:17:47 2016 +0000
Revision:
34:2749d3f57060
Parent:
33:275385014ba9
Child:
36:d96476f81b9f
GT: Reworked file system so we both have main.cpp to work on.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gtzintzarov3 34:2749d3f57060 1 /* <- remove this if you want to code this and comment Georges
gtzintzarov3 33:275385014ba9 2 #include "mbed.h"
gtzintzarov3 34:2749d3f57060 3 //#include "DebounceIn.h"
gtzintzarov3 33:275385014ba9 4
gtzintzarov3 34:2749d3f57060 5
gtzintzarov3 33:275385014ba9 6 DigitalIn pb(p8);
gtzintzarov3 33:275385014ba9 7 DigitalOut led(LED1);
gtzintzarov3 33:275385014ba9 8
gtzintzarov3 33:275385014ba9 9 int main() {
gtzintzarov3 33:275385014ba9 10
gtzintzarov3 33:275385014ba9 11 while(1) {
gtzintzarov3 33:275385014ba9 12
gtzintzarov3 33:275385014ba9 13 if(pb) {
gtzintzarov3 33:275385014ba9 14
gtzintzarov3 33:275385014ba9 15 led = !led;
gtzintzarov3 33:275385014ba9 16
gtzintzarov3 33:275385014ba9 17 }
gtzintzarov3 33:275385014ba9 18 wait(0.25);
gtzintzarov3 33:275385014ba9 19 }
gtzintzarov3 33:275385014ba9 20
gtzintzarov3 33:275385014ba9 21 }
gtzintzarov3 34:2749d3f57060 22
gtzintzarov3 34:2749d3f57060 23 */