working button incrementer

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
andrewbw01
Date:
Thu Feb 18 14:16:42 2021 +0000
Parent:
0:bfc9617c596c
Commit message:
working button incrementer

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Feb 10 15:31:26 2021 +0000
+++ b/main.cpp	Thu Feb 18 14:16:42 2021 +0000
@@ -13,12 +13,10 @@
     
     while(1)
     {
-        if (counter>9) counter = 0;
+        if (counter>3) counter = 0;
         
         if (counter<0) counter = 0;
         
-        DisplayNumber(counter);
-        
         if (button_up == 1)
         {
             counter++;