LowPowerLab / SPIFlash

Arduino library for read/write access to SPI flash memory chips
GNU General Public License v3.0
173 stars 91 forks source link

'SS_FLASHMEM' was not declared in this scope #22

Closed mitch85 closed 5 years ago

mitch85 commented 5 years ago

Hi, i use the node.ino example of the RFM69 Library. But on compiling i got these error the obove error....

LowPowerLab commented 5 years ago

You have to install and select a Moteino board, or replace SS_FLASHMEM with your SPI CS for that chip.

Erwin-66 commented 4 years ago

What would be the SPI CS for the Arduino Uno. I still get the same error

LowPowerLab commented 4 years ago

@Erwin-66 Use constructor to pass in your board's SPI CS pin.

SPIFlash(uint8_t slaveSelectPin, uint16_t jedecID=0);

So call SPIFlash(CS) or SPIFlash(10) for specific pin if CS is not defined.

garunggang commented 1 year ago

not work, confuse

LowPowerLab commented 1 year ago

You need to declare the SPI CS (SS_FLASHMEM) pin where this chip is connected, if you don't have the Moteino boards installed. Ex with D10 as SPI CS for the flash chip:

declare SS_FLASHMEM 10

datajournalist12 commented 1 year ago

Note for anyone following this issue that the following worked for me for Arduino Nano:

define SS_FLASHMEM 10

SPIFlash flash(SS_FLASHMEM);