adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
470 stars 124 forks source link

add msc internal flash samd example #148

Closed hathach closed 2 years ago

hathach commented 2 years ago

Add MSC example with internal flash example, implement #145 . The example is pretty much the same as External Flash one, except for the Adafruit_InternalFlash declaration instead of Adafruit_SPIFlash. This PR requires

Note: Like SPIFlash, InternalFlash library implement BlockDeviceAPI and reply on SdFat to provide FATFS support. This allow us to have common API with FatFileSystem FatFile object and switching between Internal and External flash easy enough (similar to external flash and SD card). The drawback is SdFat requires SPI object to compile --> we need to fake the SPI interface even though board does not have it.

ladyada commented 2 years ago

ncie!