For Hepta-Sat Lite

Files at this revision

API Documentation at this revision

Comitter:
heptasat2021
Date:
Tue Aug 17 10:50:52 2021 +0000
Parent:
10:00fc48db2361
Commit message:
For Hepta-Sat Lite

Changed in this revision

HeptaBattery.cpp Show annotated file Show diff for this revision Revisions of this file
HeptaBattery.h Show annotated file Show diff for this revision Revisions of this file
PowerControl.lib Show diff for this revision Revisions of this file
--- a/HeptaBattery.cpp	Wed Aug 21 12:14:13 2019 +0000
+++ b/HeptaBattery.cpp	Tue Aug 17 10:50:52 2021 +0000
@@ -4,7 +4,7 @@
 HeptaBattery::HeptaBattery(PinName bat, PinName bat_ct) : _bat(bat),_bat_ct(bat_ct)
 {
     _bat_ct = 1;
-    PHY_PowerDown();//stop Ethernet PHYchip
+    //PHY_PowerDown();//stop Ethernet PHYchip
 }
 
 void HeptaBattery::vol(float* bt)
@@ -20,6 +20,7 @@
 void HeptaBattery::turn_on_regulator()
 {
     _bat_ct = 1;
+    wait_ms(1000);
 }
 
 void HeptaBattery::vol_u16(char* bt_u16)
--- a/HeptaBattery.h	Wed Aug 21 12:14:13 2019 +0000
+++ b/HeptaBattery.h	Tue Aug 17 10:50:52 2021 +0000
@@ -1,8 +1,8 @@
 #ifndef MBED_HEPTABATTERY_H
 #define MBED_HEPTABATTERY_H
 #include "mbed.h"
-#include "PowerControl/PowerControl.h"
-#include "PowerControl/EthernetPowerControl.h"
+//#include "PowerControl/PowerControl.h"
+//#include "PowerControl/EthernetPowerControl.h"
 
 class HeptaBattery{
 public:
--- a/PowerControl.lib	Wed Aug 21 12:14:13 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://developer.mbed.org/users/hepta2ume/code/PowerControl/#5c2343149451