Enrico Aloisi Nardi / Mbed 2 deprecated conversor_dac

Dependencies:   mbed

Revision:
6:e8afe3e31edb
Parent:
5:436b7d88a92d
Child:
7:f69e1333449d
diff -r 436b7d88a92d -r e8afe3e31edb conversor.cpp
--- a/conversor.cpp	Mon Jun 08 14:47:42 2020 +0000
+++ b/conversor.cpp	Mon Jun 08 14:49:08 2020 +0000
@@ -39,7 +39,12 @@
             valor=leitura_an.read(); 
             pc.printf("\r\t%1.3f\n",valor);  
             wait(0.5);
+            }
+            for (int i=8; i>0; i--) { 
             saida_digital = 0b000;
+            valor=leitura_an.read(); 
+            pc.printf("\r\t%1.3f\n",valor);  
+            wait(0.5);
             }
         }
         else if (estado_botao == 1){ //Onda rampa