Lab3

Dependencies:   mbed HEPTA_EPS

Committer:
HeptaSatTraining2019
Date:
Wed Aug 21 18:14:40 2019 +0000
Revision:
25:4277e16b97c3
Parent:
24:3659e0c223c8

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:bdbd3d6fc5d5 1 #include "mbed.h"
HeptaSatTraining2019 25:4277e16b97c3 2 #include "HEPTA_EPS.h"
HeptaSatTraining2019 24:3659e0c223c8 3
umeume 2:1c5cdb2c3e0f 4 Serial pc(USBTX,USBRX);
HeptaSatTraining2019 25:4277e16b97c3 5 HEPTA_EPS eps(p16,p26);
HeptaSatTraining2019 24:3659e0c223c8 6
umeume 2:1c5cdb2c3e0f 7 int main()
umeume 2:1c5cdb2c3e0f 8 {
HeptaSatTraining2019 24:3659e0c223c8 9 pc.baud(9600);
HeptaSatTraining2019 25:4277e16b97c3 10 float bt;
HeptaSatTraining2019 25:4277e16b97c3 11 for(int i = 0; i < 10; i++) {
HeptaSatTraining2019 25:4277e16b97c3 12 eps.vol(&bt);
HeptaSatTraining2019 25:4277e16b97c3 13 pc.printf("Vol = %f\r\n",bt);
HeptaSatTraining2019 25:4277e16b97c3 14 wait(1.0);
HeptaSatTraining2019 24:3659e0c223c8 15 }
umeume 2:1c5cdb2c3e0f 16 }