Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
- Committer:
- LCRodriguez
- Date:
- 2017-08-19
- Revision:
- 0:a70d5bbd557c
File content as of revision 0:a70d5bbd557c:
#include "BCDSEG.h"
Serial pc(USBTX,USBRX);
AnalogIn Poten(A0);
int Unid,Dece;
float Vol;
int main()
{
And segm;
segm.ve(D6,D7,D8,D9,D10,D11,D12);
while(1)
{
Vol=Poten.read_u16()*0.00005;
Dece=Vol;
Unid=(Vol*10)-(Dece*10);
segm.doble(D4,D5,Unid,Dece,50);
//pc.printf("Voltaje :%0.2f\r",Vol);
//wait(0.06);
}
}