Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AIDES: https://learn.adafruit.com/adafruit-hallowing
- //AIDES: https://bit.ly/2EemKGw
- //Adafruit Hallowing M0 Express
- /*//---SPIFFLASH LIBs (Memoire Interne)---
- #include <SPI.h>
- #include <Adafruit_SPIFlash.h>
- #include <Adafruit_SPIFlash_FatFs.h>
- //---SPIFFLASH LIBs (Memoire Interne)---
- // Configuration of the flash chip pins and flash fatfs object.
- // You don't normally need to change these if using a Feather/Metro
- // M0 express board.
- #define FLASH_TYPE SPIFLASHTYPE_W25Q16BV // Flash chip type,If you change this be, sure to change the fatfs,/ object type below to match.
- #if (SPI_INTERFACES_COUNT == 1)
- #define FLASH_SS SS // Flash chip SS pin.
- #define FLASH_SPI_PORT SPI // What SPI port is Flash on?
- #else
- #define FLASH_SS SS1 // Flash chip SS pin.
- #define FLASH_SPI_PORT SPI1 // What SPI port is Flash on?
- #endif
- Adafruit_SPIFlash flash(FLASH_SS, &FLASH_SPI_PORT); // Use hardware SPI
- // Alternatively you can define and use non-SPI pins!
- //Adafruit_SPIFlash flash(SCK1, MISO1, MOSI1, FLASH_SS);
- // Finally create an Adafruit_M0_Express_CircuitPython object which gives
- // an SD card-like interface to interacting with files stored in CircuitPython's
- // flash filesystem.
- Adafruit_M0_Express_CircuitPython pythonfs(flash);//Configuration SPIFFLASH */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement