IDD Fall 2015 / Mbed 2 deprecated idd_fall15_hw2_psddtgb_PushButtonTextEntry

Dependencies:   DebounceIn USBDevice mbed

Fork of idd_fall15_hw2_psddtgb_PushButtonTextEntry by Ardalan Moazeni

Files at this revision

API Documentation at this revision

Comitter:
psddtgb
Date:
Mon Sep 14 20:00:35 2015 +0000
Parent:
0:891a320d6d46
Commit message:
hw2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Sep 14 00:53:13 2015 +0000
+++ b/main.cpp	Mon Sep 14 20:00:35 2015 +0000
@@ -20,8 +20,6 @@
 
 int main()
 { 
-//int old_pb=0;
-//int new_pb;
 int m = 1;
 ledr = 1;
 ledg = 1;
@@ -40,9 +38,6 @@
     // Delay for initial pullup to take effect
     wait(.001);
     while(1) {
-        //new_pb = pb;
-        //if ((new_pb==0) && (old_pb==1)) ledr = 1;
-        //old_pb = new_pb;
         if (m==1 && pbm==0) {
                             m=2;
                             ledr=0;