diff --git a/examples/SST25VFTest.ino b/examples/SST25VFTest.ino deleted file mode 100644 index 4ba67d8..0000000 --- a/examples/SST25VFTest.ino +++ /dev/null @@ -1,96 +0,0 @@ -#include -#include - - -#define MemCs 6 //chip select -#define MemWp 4 //write protection -#define MemHold 14 //hold - -SST25VF flash; - -#define DL 11 -uint8_t buffer[DL]; //20130903T2046Z - -void setup(){ - Serial.begin(38400); - - flash.begin(MemCs,MemWp,MemHold); - -} - -void loop(){ - - Serial.println("writing bytes...."); - for(uint8_t i=0;i<11;i++) - { - flash.writeByte((uint32_t)i,i); - Serial.print("address: "); - Serial.println(i); - } - Serial.println("reading bytes...."); - - long x=0; - flash.readInit((4096UL*x)); - - boolean sectorEmpty = true; - for (int q=0; q<11; q++) - { - uint8_t result = flash.readNext(); - Serial.println(result,DEC); - if (result == 0xFF) - { - - break; - } - } - - flash.readFinish(); -//----------------------------------------------- - Serial.println("erasing..."); - flash.sectorErase(0); - - Serial.println("writing array..."); - - for(uint8_t i=0;i