Lab that has to do with basic IO on mbed.

Dependencies:   DebounceIn mbed PinDetect

Revision:
36:d96476f81b9f
Parent:
34:2749d3f57060
Child:
37:dd0d72140b17
--- a/JessesLab1/main.cpp	Fri Jan 15 23:26:37 2016 +0000
+++ b/JessesLab1/main.cpp	Sun Jan 17 13:34:09 2016 -0500
@@ -1,23 +1,18 @@
-/* <- remove this if you want to code this and comment Georges
+//* <- remove this if you want to code this and comment Georges
 #include "mbed.h"
-//#include "DebounceIn.h"
- 
- 
+#include "DebounceIn.h"
+#include "PinDetect.h"
+
 DigitalIn pb(p8);
 DigitalOut led(LED1);
- 
+
 int main() {
- 
-    while(1) {
- 
-        if(pb) {
- 
-            led = !led;
- 
-        }
-        wait(0.25);
-    }
- 
+
+  pb.mode(PullUp);
+
+  while(1) {
+
+    led = pb;
+
+  }
 }
-
-*/
\ No newline at end of file