KTN / Mbed 2 deprecated STM32_ADC_InternalChannels

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jorrit
Date:
Mon Dec 21 15:26:39 2020 +0000
Parent:
0:7d1b333d6f0b
Commit message:
version 2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 21 07:25:45 2020 +0000
+++ b/main.cpp	Mon Dec 21 15:26:39 2020 +0000
@@ -20,7 +20,6 @@
 void sensor1rise()
 {
     Timer1.start();
- 
 }
 
 void sensor1fall()
@@ -36,11 +35,10 @@
     
     if (count == 13)
     {   
-        pc.printf("T1                   : %d \r\n",(int)T1);
+        //pc.printf("T1                   : %d \r\n",(int)T1);
         //pc.printf("Snelheid in m/s    : %.5f \r\n",Snelheid);
         pc.printf("%.5f \r\n",Afstand);
-        //pc.printf("count1               : %d \r\n", count1);
-        //pc.printf("\r\n");
+        //c.printf("\r\n");
         count = 1;
     }
 }
@@ -56,6 +54,7 @@
     
     //Snelheid berekenen.
     Snelheid = 0.075 / (T1 * 0.000001);     //0.24
+    
 }
 
 void sensor2fall()