HEPTA-Sat Hands-On / Mbed 2 deprecated HeptaBattery

Dependencies:   mbed PowerControl SDFileSystem

Fork of HeptaBattery by 智也 大野

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include"mbed.h"
00002 #include"HeptaBattery.h"
00003 
00004 Serial pc(USBTX,USBRX);
00005 HeptaBattery battery(p16,p29,p26);
00006 
00007 int main(){
00008     pc.baud(9600);
00009     float bt;
00010     for(int i=0;i<10;i++){
00011         battery.vol(&bt);
00012         pc.printf("Vol=%f\r\n",bt);
00013         wait(1.0);
00014     }
00015 }
00016