Ligne 1 : |
Ligne 1 : |
| {{ENG-CANSAT-PICO-NAV}} | | {{ENG-CANSAT-PICO-NAV}} |
| | | |
− | {{traduction}}
| |
| == MicroPython File System == | | == MicroPython File System == |
− | MicroPython board does fits an internal file system. This means that Python language on a MicroPython board can also manage files and directories! | + | MicroPython board does fits an internal file system. This means that Python language on a MicroPython board can also manage files and directories! Exactly like python does on a computer :-). |
| | | |
| [[Fichier:MicroPython-FileSystem.png|256px]] | | [[Fichier:MicroPython-FileSystem.png|256px]] |
Ligne 50 : |
Ligne 49 : |
| * the {{fname|strip('\r\n')}} remove the carriage return & line feed from the readed line. Otherwise it will also be printed to the REPL (which result into a double line feed). | | * the {{fname|strip('\r\n')}} remove the carriage return & line feed from the readed line. Otherwise it will also be printed to the REPL (which result into a double line feed). |
| | | |
− | == File-system, Writing and data lost == | + | == File-systems, Writing and data lost == |
| | | |
| {{underline|'''The computer file-system:'''}} | | {{underline|'''The computer file-system:'''}} |
Ligne 97 : |
Ligne 96 : |
| | | |
| [[Fichier:LittleFS-flushed.png|640px]] | | [[Fichier:LittleFS-flushed.png|640px]] |
| + | |
| + | == Ressources == |
| + | * [https://docs.micropython.org/en/latest/library/os.html Basic "operating system" services] (''micropython.org'')<br />Usual OS functions + file-system mounting, formating, block devices, etc |
| + | * [https://docs.micropython.org/en/latest/reference/filesystem.html Working with filesystems] (micropython.org) |
| | | |
| {{ENG-CANSAT-PICO-TRAILER}} | | {{ENG-CANSAT-PICO-TRAILER}} |