Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: etape0.h
- Revision:
- 0:dbd6ea244e7e
diff -r 000000000000 -r dbd6ea244e7e etape0.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etape0.h Thu May 19 13:06:08 2022 +0000
@@ -0,0 +1,32 @@
+// actions menées
+// 1/ faire clignoter la led 10 fois
+// 2/ placer la sortie Vr à 1.227V ( 20°C ?)
+// 3/ informer le PC qu'on est en mode sans carte capteur 'h'
+// 4/ petit delai et eteindre la led
+// 5/ on force etape = 1
+
+
+void etape0()
+ {
+ for ( int i = 0 ; i < 5 ; i++)
+ {
+ LED = 0 ; // la sortie LED est mise à 0L
+ wait(0.5) ; // attente de 0.2S
+ LED = 1 ;
+ wait(0.5) ;
+ }
+
+ pc.putc('h') ; // on dit au PC "pas de carte capteur"
+ pc.putc('d') ;
+ if((INP0==1) && (INP1==1))calibrationT();
+ if((INP0==0) && (INP1==1))calibrationF();
+ if((INP0==1) && (INP1==0))calibrationL();
+
+ wait(0.2) ; // delai
+ LED = 0 ; // eteindre la led
+
+
+
+
+ //etape = 1 ; // changement d'étape à 1
+ }