Local library

Dependencies:   WakeUp PinDetect

Dependents:   Inductive_Sensor Inductive_Sensor_Jasper Inductive_Sensor_3

Revision:
5:c2468a69aacb
Parent:
4:9c3c8eb56a2b
Child:
6:0e7c0ad0508b
--- a/Bob.h	Wed Mar 30 12:00:43 2016 +0000
+++ b/Bob.h	Tue Apr 12 14:39:08 2016 +0000
@@ -15,7 +15,7 @@
 
 class Bob {
     public:
-        Bob(PinName redled, PinName greenled, PinName sd_enable, PinName sd_present, PinName battery, PinName V_Det);
+        Bob(PinName led, PinName sd_enable, PinName sd_present, PinName battery, PinName V_Det);
     
         bool checkSD(void);
         
@@ -24,22 +24,20 @@
         void wakeup(void);
 
         float battery(void);
+        
         void flash(int n);
-        void flash_red(int n);
-        void flash_green(int n);
-        void red(void);
-        void green(void);
-        void redoff(void);
-        void greenoff(void);
+        void ledon(void);
+        void ledoff(void);
             
     private:
-        DigitalOut _red;
-        DigitalOut _green;
+        DigitalOut _led;
         DigitalOut _sd_enable;
         DigitalIn *_sd_card_detect;
+        
         AnalogIn  *_batt;
         DigitalIn *_V_Det;
-        
+
+
 };
 
 #endif
\ No newline at end of file