Modifications

Sauter à la navigation Sauter à la recherche
824 octets ajoutés ,  1 juin 2021 à 16:02
Ligne 88 : Ligne 88 :  
* Le Slot 1 correspond à sck=14, cmd=15, D0=2, D1=4, D2=12, D3=13
 
* Le Slot 1 correspond à sck=14, cmd=15, D0=2, D1=4, D2=12, D3=13
 
* [https://docs.micropython.org/en/latest/library/machine.SDCard.html Les autres slots sont décrit dans ce document.]
 
* [https://docs.micropython.org/en/latest/library/machine.SDCard.html Les autres slots sont décrit dans ce document.]
 +
 +
<syntaxhighlight lang="python">
 +
MicroPython v1.15 on 2021-04-18; ESP32 module with ESP32
 +
Type "help()" for more information.
 +
>>>
 +
>>> from machine import SDCard
 +
>>> sdcard = SDCard( slot=1, width=1 )
 +
>>>
 +
>>> import os
 +
>>> os.mount( sdcard, "/sd" )
 +
>>> os.listdir( "/sd" )
 +
['adafruit_feather_esp8266.md', 'adafruit_feather_esp32.md', 'adafruit_feather_rp2040.md', 'adafruit_huzzah_esp32.md', 'adafruit_huzzah_esp8266.md', 'adafruit_itsybitsy_rp2040.md', 'garatronic_pyb405.md', 'garatronic_pybstick26std.md', 'micropython_pybd_sf2w.md', 'micropython_pyboard.md', 'olimex_esp32_devkit_lipo.md', 'olimex_esp32_evb.md', 'olimex_esp8266_dev.md', 'olimex_esp8266_evb.md', 'pimoroni_pico_lipo.md', 'pimoroni_tiny_2040.md', 'raspberrypi_pico.md', 'sparkfun_micromod_rp2040.md', 'sparkfun_thing_plus_rp2040.md']
 +
</syntaxhighlight>
    
== Où acheter ==
 
== Où acheter ==
29 917

modifications

Menu de navigation