I anderstand the problem
But if I want to write to the SD card I ve got an error :
Code: Select all
>>>
paste mode; Ctrl-C to cancel, Ctrl-D to finish
=== import pyb
=== import os
=== os.mount(pyb.SDCard(), '/sd')
=== os.chdir('/sd')
===
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
AttributeError: 'module' object has no attribute 'SDCard'
>>>
and when I ask in a console
Code: Select all
>>> dir(pyb)
['__class__', '__name__', 'DAC', 'RTC', 'ADC', 'ADCAll', 'CAN', 'ExtInt', 'Flash', 'I2C', 'LED', 'Pin', 'SPI', 'Switch', 'Timer', 'UART', 'USB_HID', 'USB_VCP', 'bootloader', 'delay', 'dht_readinto', 'disable_irq', 'elapsed_micros', 'elapsed_millis', 'enable_irq', 'fault_debug', 'freq', 'hard_reset', 'have_cdc', 'hid', 'hid_keyboard', 'hid_mouse', 'info', 'main', 'micros', 'millis', 'mount', 'repl_info', 'repl_uart', 'rng', 'standby', 'stop', 'sync', 'udelay', 'unique_id', 'usb_mode', 'wfi']
>>>
Is there an other module that allow me to access to the cardreader ?