earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
2.05k stars 429 forks source link

TinyUSB library - Examples: msc_sdfat (and msc_sd) compiler error #510

Closed madias123 closed 2 years ago

madias123 commented 2 years ago

Hello, I do not know who is responsable for this error (this repo or adafruit): The example: TinyUSB -> mass storage -> msc_sdfat compiles with following error: 'SdCard' {aka 'class DedicatedSpiCard'} has no member named 'readBlocks' It seems, that the latest greiman sdfat library do not have implemented "readBlocks" and "writeBlocks" anymore. Sadly even the example "msc_sd" compiles with error: 'Sd2Card' does not name a type; did you mean 'SdCard'? It looks like both examples are totally outdated? Tried out with Arduino IDE 1.8.18

hathach commented 2 years ago

you will need to install SdFat (Adafruit's fork) of the library https://github.com/adafruit/SdFat

earlephilhower commented 2 years ago

Thanks, @hathach ! Closing.

madias123 commented 2 years ago

Hello, thank you for your super fast reply! Now it works. Dunno...I dream of a time only greiman sdfat library will still exits in Arduino land ;)