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:aa27a09e44d2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Aug 19 21:49:33 2017 +0000
@@ -0,0 +1,21 @@
+#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);
+
+ }
+}
+
\ No newline at end of file