test

Dependencies:   FT800_2 C12832 LTC2309 affichage

Files at this revision

API Documentation at this revision

Comitter:
nk_ralph
Date:
Tue Jun 08 08:23:07 2021 +0000
Commit message:
test

Changed in this revision

.gitignore Show annotated file Show diff for this revision Revisions of this file
C12832.lib Show annotated file Show diff for this revision Revisions of this file
FT800_2.lib Show annotated file Show diff for this revision Revisions of this file
LTC2309.lib Show annotated file Show diff for this revision Revisions of this file
affichage.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gitignore	Tue Jun 08 08:23:07 2021 +0000
@@ -0,0 +1,4 @@
+.build
+.mbed
+projectfiles
+*.py*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832.lib	Tue Jun 08 08:23:07 2021 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/C12832/#7de323fa46fe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FT800_2.lib	Tue Jun 08 08:23:07 2021 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dreschpe/code/FT800_2/#16e22c789f7d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LTC2309.lib	Tue Jun 08 08:23:07 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/nk_ralph/code/LTC2309/#54613210d97a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/affichage.lib	Tue Jun 08 08:23:07 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/nk_ralph/code/affichage/#66a03c7cfb16
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jun 08 08:23:07 2021 +0000
@@ -0,0 +1,62 @@
+#include "mbed.h"
+#include "affichage.h"
+#include "ltc2309.h"
+
+float CZ;
+float CX;
+float Deg;
+float CH0;
+float CH1;
+float CH2;
+float CH3;
+float CH4;
+float CH5;
+float CH6;
+float CH7;
+
+
+/***********************************************************************************************************************/
+/* Main function */
+bool NewAffichage = true;
+bool Acquisition = false;
+
+Ticker EventAcq;
+
+void FEventAcq()
+{
+    Acquisition = true;
+}
+
+int main()
+{
+    CZ = 1258;
+    luminosite(128);
+    LTC2309Init();
+    LTC2309Autozero();
+    //TFT.Calibrate();                                                                // calibre l'écran au démarrage
+    //TFT.Track(244, 45, 161, 17, 2);
+    EventAcq.attach(&FEventAcq, 0.5); //
+        while(1) {
+        if (Acquisition==true) {     // Si une valeur change
+            CX=CX+1;
+            CH0 = LTC2309read(CH0c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 0
+            CH1 = LTC2309read(CH1c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 1
+            CH2 = LTC2309read(CH2c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 2
+            CH3 = LTC2309read(CH3c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 3
+            CH4 = LTC2309read(CH4c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 4
+            CH5 = LTC2309read(CH5c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 5
+            CH6 = LTC2309read(CH6c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 6
+            CH7 = LTC2309read(CH7c);        //  Acquisition de la  valeur de champ de pression en Pascal pour la voie 7
+            NewAffichage = true;
+            Acquisition = false;
+        }
+             
+
+        if (NewAffichage==true) {       //  Si NewAffichage est égale à True, on raffraichit l'écran 
+            NewAffichage = false;
+            EcranPrincipale();
+        }
+           
+    }
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Tue Jun 08 08:23:07 2021 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#cf4f12a123c05fcae83fc56d76442015cb8a39e9