FOXBAJA / Mbed 2 deprecated VLK_091

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
rafaelff3
Date:
Mon Feb 22 16:20:34 2021 +0000
Parent:
0:9b9b318a5f0d
Commit message:
Loop inifinito adicionado

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Feb 22 16:17:57 2021 +0000
+++ b/main.cpp	Mon Feb 22 16:20:34 2021 +0000
@@ -7,6 +7,8 @@
 
 int main()
 {
-    sinal = freio.read(); // Leitura vai de 0.2 (0 bar) a 1 (10 bar)
-    pressao = (sinal - 0.2)/0.8*10
+    while(1){
+        sinal = freio.read(); // Leitura vai de 0.2 (0 bar) a 1 (10 bar)
+        pressao = (sinal - 0.2)/0.8*10
+    }
 }
\ No newline at end of file