HeptaBattery

Dependencies:   HeptaBattery mbed

Fork of PowerControl by Michael Wei

Committer:
hepta2ume
Date:
Fri Jul 21 06:42:14 2017 +0000
Revision:
1:32bb7ecf8c47
Parent:
0:9bd5f1bdb845
HeptaBattery

Who changed what in which revision?

UserRevisionLine numberNew contents of line
no2chem 0:9bd5f1bdb845 1 #include "mbed.h"
hepta2ume 1:32bb7ecf8c47 2 #include "HeptaBattery.h"
hepta2ume 1:32bb7ecf8c47 3
hepta2ume 1:32bb7ecf8c47 4 HeptaBattery battery(p16,p26);
no2chem 0:9bd5f1bdb845 5
hepta2ume 1:32bb7ecf8c47 6 int main()
hepta2ume 1:32bb7ecf8c47 7 {
hepta2ume 1:32bb7ecf8c47 8 char bat[4];
hepta2ume 1:32bb7ecf8c47 9 int dsize[1];
hepta2ume 1:32bb7ecf8c47 10 battery.vol_u16(bat,&dsize[0]);
no2chem 0:9bd5f1bdb845 11 }