Damien George
3759aa2cc9
drivers/sdcard: Update SD mounting example code for ESP8266.
2018-02-18 23:40:54 +11:00
Hemanth kumar
a44892dd0d
drivers/sdcard: Update doc for ESP8266 to use correct SPI number.
...
machine.SPI(0) results in ValueError on ESP8266. SPI(1) is the user
hardware SPI port (or use SPI(-1) for software SPI).
2018-01-31 21:25:58 +11:00
Ayke van Laethem
a275cb0f48
drivers/sdcard: Avoid allocation on the heap.
...
This commit fixes two things:
1. Do not allocate on the heap in readblocks() - unless the block size
is bigger than 512 bytes.
2. Raise an error instead of returning 1 to indicate an error: the FAT
block device layer does not check the return value. And other
backends (e.g. esp32 blockdev) also raise an error instead of
returning non-zero.
2018-01-10 19:14:46 +11:00
Ayke van Laethem
b90f51f86a
drivers/sdcard: Support old SD cards (<=2GB).
2017-12-22 16:49:58 +11:00
Alexander Steffen
55f33240f3
all: Use the name MicroPython consistently in comments
...
There were several different spellings of MicroPython present in comments,
when there should be only one.
2017-07-31 18:35:40 +10:00
Paul Sokolovsky
1c9ee49756
drivers: Replace deprecated Pin.high()/low() methods with .__call__(1/0).
2017-05-21 17:44:58 +03:00
Mike Causer
c5310ee5b5
drivers: Fix some minor spelling mistakes.
...
respones -> response
succeses -> successes
2017-01-18 15:31:05 +11:00
Damien George
7bb0f7b0f6
drivers: Add "from micropython import const" when const is used.
...
Following best-practice use of the const feature, to make it compatible
with Python.
2016-11-03 12:41:11 +11:00
Radomir Dopieralski
ce1c786297
drivers/sdcard: Port the SDCard driver to new machine API.
...
With backwards compatibility for pyboard.
2016-09-01 17:44:07 +10:00
Peter Hinch
2bd758fe96
drivers/sdcard: Add support for multi-block read/write; add SD test.
2016-02-02 11:16:15 +00:00
Damien George
24652228af
drivers/sdcard: Allow up to 5 retries to initialise SD card.
...
Apparently some cards need more than 2 retries. See issue #1482 .
2015-10-10 00:07:40 +01:00
Damien George
1570eaf0e3
drivers: Add SD card driver, controlled via SPI bus.
2014-12-27 20:23:14 +00:00