APP2

Dependencies:   mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
vinceP
Date:
Sat Sep 16 14:13:37 2017 +0000
Parent:
0:d2d3c494b28a
Commit message:
test

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d2d3c494b28a -r b22fb16401a2 main.cpp
--- a/main.cpp	Fri Sep 15 21:30:49 2017 +0000
+++ b/main.cpp	Sat Sep 16 14:13:37 2017 +0000
@@ -18,7 +18,9 @@
 
 int conteur_ticker = 0;
 int derniere_lecture = 0;
+
 int derniere_lecture_digital[] = {0,0};
+uint32_t donner_analog[5];
 bool changement_digital = false;
 bool changement_digital_pin[] = {false,false};
 float seuil_detection = 0.125 * 5 * 65535;
@@ -40,8 +42,9 @@
     queue.put(message);
 }
 
-int calc_moyenne(){
-    //uint32_t somme = donner_analog[0] + donner_analog[1] + donner_analog[2] + donner_analog[3] + donner_analog[4];
+uint32_t calc_moyenne(){
+    uint32_t somme = donner_analog[0] + donner_analog[1] + donner_analog[2] + donner_analog[3] + donner_analog[4];
+    return somme;
 }
 void lecture_analog() {
     int* conteur = 0;