Lab that has to do with basic IO on mbed.

Dependencies:   DebounceIn mbed PinDetect

Committer:
gtzintzarov3
Date:
Tue Jan 19 02:38:58 2016 +0000
Revision:
44:30abfd5d24f2
Parent:
43:a07c473ee4c7
Child:
45:6f60aac74257
Working pb with RGB LED- heatmap color

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gtzintzarov3 44:30abfd5d24f2 1 /* <- remove this if you want to code this and comment Georges
gtzintzarov3 33:275385014ba9 2 #include "mbed.h"
Jesse Baker 36:d96476f81b9f 3 #include "DebounceIn.h"
Jesse Baker 36:d96476f81b9f 4 #include "PinDetect.h"
Jesse Baker 36:d96476f81b9f 5
Jesse Baker 42:841b1bf3f173 6 PinDetect light(p8);
Jesse Baker 42:841b1bf3f173 7 PwmOut led(p21);
Jesse Baker 36:d96476f81b9f 8
gtzintzarov3 33:275385014ba9 9 int main() {
Jesse Baker 36:d96476f81b9f 10
jbaker66 43:a07c473ee4c7 11 light.mode(PullUp);
Jesse Baker 36:d96476f81b9f 12
Jesse Baker 36:d96476f81b9f 13 while(1) {
Jesse Baker 36:d96476f81b9f 14
jbaker66 43:a07c473ee4c7 15
jbaker66 43:a07c473ee4c7 16 led.write(!light);
Jesse Baker 42:841b1bf3f173 17
Jesse Baker 42:841b1bf3f173 18 }
gtzintzarov3 44:30abfd5d24f2 19 }*/