Elodie DIFONZO / Mbed 2 deprecated capteur_pression

Dependencies:   mbed

Revision:
2:9d7bbe39008b
Parent:
1:67a2c4f35f98
diff -r 67a2c4f35f98 -r 9d7bbe39008b main.cpp
--- a/main.cpp	Tue Feb 26 09:29:37 2019 +0000
+++ b/main.cpp	Tue Feb 26 13:40:27 2019 +0000
@@ -12,10 +12,14 @@
 
 int main()
 {
+    float force;
+    
     while(1) 
     {
       wait(1);
+      force = capteur.read();
       pc.printf("Ucap = %.2f mV\n\r", capteur);
+      pc.printf("force = %.f", force);
       wait(1);
      
     }