Différences entre versions de « ENG-CANSAT-PICO-LOG »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 5 : Ligne 5 :
 
MicroPython board does fits an internal file system. This means that Python language on a MicroPython board can also manage files!
 
MicroPython board does fits an internal file system. This means that Python language on a MicroPython board can also manage files!
  
[[Fichier:MicroPython-FileSystem.png]]
+
[[Fichier:MicroPython-FileSystem.png|320px]]
  
 
On a MicroPython board, you can manage files and directories. Creating them, deleting them, adding data to them, etc.
 
On a MicroPython board, you can manage files and directories. Creating them, deleting them, adding data to them, etc.

Version du 6 mars 2022 à 23:58

Page-under-construction.pngPage(s) en cours de traduction/élaboration.

Page(s) under translation/construction

MicroPython File System

MicroPython board does fits an internal file system. This means that Python language on a MicroPython board can also manage files!

MicroPython-FileSystem.png

On a MicroPython board, you can manage files and directories. Creating them, deleting them, adding data to them, etc.

As any good implementation of Python, MicroPython can manage text files and binary files.

Data Logging on MicroPython

Doing data logging with MicroPython is quite easy. You just open a file and write data into it like you will do with any Python code.

Writing data to text file

The following example adds lines to the 'file.txt'. The with statement will automatically close the file when the code gets out of the with scope.

xxx

Written by Meurisse D. for MCHobby


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.