Fork of original senior design repo

Dependencies:   SDFileSystem mbed-rtos mbed wave_player emic2

Fork of BAT_senior_design by BAT

Revision:
12:b80dde24e9bc
Parent:
10:21268d8bf979
Child:
13:581a3b02f4c3
--- a/button.h	Wed Oct 18 14:06:19 2017 +0000
+++ b/button.h	Wed Oct 18 14:41:04 2017 +0000
@@ -1,19 +1,23 @@
 #include "mbed.h"
 
+// This is a button class for our custom button
 class button {
 
+// pins connected to the button
 private:
     PwmOut servo;
     DigitalIn pb;
-    int state;
-
+    //int state; // is the button up or down
+    // int mode; // is the system in reading or typing mode
+    //AnalogIn linpot;
+    
 public:
     // constructors
     button();
     button(PwmOut servo, DigitalIn pb);
     // functions
-    PwmOut getServoPin();
-    int getState();
-    void moveServoIn();
-    void moveServoOut();
+    PwmOut getServoPin(); // get the servo pin
+    //int getState();     // determine what state the button is in - up or down
+    void moveServoIn();   // move servo into the slot
+    void moveServoOut();  // move servo out of the slot
 };
\ No newline at end of file