Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
ENG-CANSAT-MISSION1-CAPTURE
(voir la source)
Version du 29 octobre 2018 à 22:21
173 octets ajoutés
,
29 octobre 2018 à 22:21
→The code explained
Ligne 344 :
Ligne 344 :
}
}
</syntaxhighlight>
</syntaxhighlight>
+
+
This function send the header information to the Serial monitor.
+
+
Ideally, this function should also send it via the radio.
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
void send_header() {
void send_header() {
−
// Send header about the data Serial.println(F("***START***"));
String s1 = String( F("***HEADER***\r\n") );
String s1 = String( F("***HEADER***\r\n") );
Serial.print( s1 );
Serial.print( s1 );
−
// use : as begin of data and ; as end of data
String s2 = String( F(":counter|time_ms|temperature|pressure_hpa|temp2;\r\n") );
String s2 = String( F(":counter|time_ms|temperature|pressure_hpa|temp2;\r\n") );
Serial.print(s2);
Serial.print(s2);
Ligne 358 :
Ligne 360 :
}
}
</syntaxhighlight>
</syntaxhighlight>
+
+
Helper function used to blink a LED. Note that a pause of 3 time the blinking time. This will ease the identification of blink code into other blinking patterns.
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
Admin
Bureaucrates
,
Administrateurs
29 910
modifications
Menu de navigation
Outils personnels
Se connecter
Espaces de noms
Page
Discussion
Variantes
Affichages
Lire
Voir le texte source
Voir l’historique
Plus
Rechercher
Navigation
ARDUINO
RASPBERRY-PI
[:: PI Hacking ::]
Particle.IO
Micro Python
Imprimante 3D
Actualités
Modifications récentes
Page au hasard
Aide
Outils
Pages spéciales
Version imprimable