Skip to content

Commit

Permalink
DM: add W25Q64 filesystem info
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm1278 committed Oct 11, 2018
1 parent fb17734 commit c3d847a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Adafruit_SPIFlash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ boolean Adafruit_SPIFlash::begin(spiflash_type_t t) {
addrsize = 24;
pages = 4096;
totalsize = pages * pagesize; // 1 MBytes
} else if (type == SPIFLASHTYPE_W25Q64) {
pagesize = 256;
addrsize = 24;
pages = 32768;
totalsize = pages * pagesize; // 8 MBytes
}
else {
pagesize = 0;
Expand Down
1 change: 1 addition & 0 deletions Adafruit_SPIFlash.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ typedef enum
SPIFLASHTYPE_25C02,
SPIFLASHTYPE_W25X40CL,
SPIFLASHTYPE_AT25SF041,
SPIFLASHTYPE_W25Q64,
} spiflash_type_t;

class Adafruit_SPIFlash : public Print {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit SPIFlash
version=1.0.5
version=1.0.6
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=SPI Flash filesystem support for FAT and CircuitPython FS support from within Arduino
Expand Down

0 comments on commit c3d847a

Please sign in to comment.