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:aa27a09e44d2
File content as of revision 0:aa27a09e44d2:
#include "BCDSEG.h"
BusOut Leds(D13,D2,D3,D4,D5,D6,D7,D8,D9,D10,D11,D12);
Serial pc(USBTX,USBRX);
int volta;
AnalogIn Pote(A0);
int main()
{
And Encen;
Encen.ve(D13,D2,D3,D4,D5,D6,D7,D8,D9,D10,D11,D12);
while(1)
{
float volta=Pote.read_u16()*0.000050354;
pc.printf("Hola mundo :%0.2f\r",volta);
Encen.bcd(volta);
wait(0.06);
}
}