Update SPIFlash_ReadWrite.ino

This commit is contained in:
Felix Rusu 2020-04-30 14:36:50 -04:00
parent 413bec7e5d
commit 3f3d02ebf4
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,12 @@
char input = 0; char input = 0;
long lastPeriod = -1; long lastPeriod = -1;
#ifdef __AVR_ATmega1284P__
#define SS_FLASHMEM 23 // and FLASH SS on D23
#else
#define SS_FLASHMEM 8 // and FLASH SS on D8
#endif
////////////////////////////////////////// //////////////////////////////////////////
// flash(SPI_CS, MANUFACTURER_ID) // flash(SPI_CS, MANUFACTURER_ID)
// SPI_CS - CS pin attached to SPI flash chip (8 in case of Moteino) // SPI_CS - CS pin attached to SPI flash chip (8 in case of Moteino)