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.
Diff: main.cpp
- Revision:
- 0:a70d5bbd557c
diff -r 000000000000 -r a70d5bbd557c main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Aug 19 21:51:03 2017 +0000
@@ -0,0 +1,23 @@
+#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);
+
+ }
+}
+
\ No newline at end of file