Used with KL25Z Freescale board to access the Avnet Wi-Go Battery charger

Dependents:   KL25Z_Batt_Test

Revision:
2:f52adda183d2
Parent:
1:4c20371cd5c2
--- a/WiGo_BattCharger.h	Fri May 17 15:32:44 2013 +0000
+++ b/WiGo_BattCharger.h	Fri May 17 20:13:01 2013 +0000
@@ -18,7 +18,11 @@
 #define BATT_LED_ON     0
 #define BATT_LED_OFF    1
 #define BATT_0          0.53
-#define BATT_100        0.67
+#define BATT_100        0.63
+#define CHRG_100MA      0
+#define CHRG_500MA      1
+#define CHRG_740MA      2
+#define CHRG_STOP       3
 
 class WiGo_BattCharger
 {
@@ -38,7 +42,9 @@
 
     int supply( void );
 
-    void LEDupdate( void );
+    void LEDupdate( int n );
+    
+    int level( void );
     
 protected:
     DigitalOut _battfull;