![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
HeptaBattery
Dependencies: HeptaBattery mbed
Fork of PowerControl by
Revision 1:32bb7ecf8c47, committed 2017-07-21
- Comitter:
- hepta2ume
- Date:
- Fri Jul 21 06:42:14 2017 +0000
- Parent:
- 0:9bd5f1bdb845
- Commit message:
- HeptaBattery
Changed in this revision
HeptaBattery.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9bd5f1bdb845 -r 32bb7ecf8c47 HeptaBattery.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HeptaBattery.lib Fri Jul 21 06:42:14 2017 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/users/hepta2ume/code/HeptaBattery/#1682fa22a51e
diff -r 9bd5f1bdb845 -r 32bb7ecf8c47 main.cpp --- a/main.cpp Sat Jan 30 02:23:30 2010 +0000 +++ b/main.cpp Fri Jul 21 06:42:14 2017 +0000 @@ -1,15 +1,11 @@ #include "mbed.h" -#include "PowerControl/PowerControl.h" -#include "PowerControl/EthernetPowerControl.h" +#include "HeptaBattery.h" + +HeptaBattery battery(p16,p26); -int main() { - //turn OSC1 down - PHY_PowerDown(); - wait(5); - LPC_GPIO1->FIODIR = 0x8000000; - LPC_GPIO1->FIOCLR = 0x8000000; - wait(5); - LPC_GPIO1->FIOSET = 0x8000000; - wait(5); - PHY_PowerUp(); +int main() +{ + char bat[4]; + int dsize[1]; + battery.vol_u16(bat,&dsize[0]); } \ No newline at end of file