Ligne 140 : |
Ligne 140 : |
| | | |
| == Port SD (todo) == | | == Port SD (todo) == |
| + | TODO |
| | | |
| + | voir {{fname|machine.SD}} exemple provenant de [https://micropython.org/resources/docs/en/latest/wipy/library/machine.SD.htmls micropython.org/wipy] |
| | | |
− | https://micropython.org/resources/docs/en/latest/wipy/library/machine.SD.html
| + | <syntaxhighlight lang="python"> |
| + | from machine import SD |
| + | import os |
| + | |
| + | # Indiquer les broches dont les fonctions alternatives (''alternate function'') |
| + | # supportent respectivement clk cmd et dat0 |
| + | sd = machine.SD(pins=('GP10', 'GP11', 'GP15')) |
| + | |
| + | # Monter la carte SD |
| + | os.mount(sd, '/sd') |
| + | |
| + | # Effectuer les opérations sur les fichiers |
| + | </syntaxhighlight> |
| | | |
| == Broches Spéciales == | | == Broches Spéciales == |