![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Battery
Dependencies: mbed PowerControl SDFileSystem
Fork of HeptaBattery by
main.cpp
- Committer:
- tomoya123
- Date:
- 2016-12-13
- Revision:
- 1:166ddf929155
- Parent:
- 0:d53e9c6fc771
File content as of revision 1:166ddf929155:
#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); } }