Battery
Dependencies: mbed PowerControl SDFileSystem
Fork of HeptaBattery by
main.cpp
- Committer:
- MEXT1
- Date:
- 2016-12-13
- Revision:
- 2:f82baa83591f
- Parent:
- 1:166ddf929155
File content as of revision 2:f82baa83591f:
#include"mbed.h" #include"HeptaBattery.h" Serial pc(USBTX,USBRX); HeptaBattery battery(p16,p29,p26); int main(){ pc.baud(9600); float bt; for(int i=0;i<10;i++){ battery.vol(&bt); pc.printf("Vol=%f\r\n",bt); wait(1.0); } }