Go to file
Felix Rusu 9c0c2b91a2 Update .travis.yml 2020-06-12 10:14:42 -04:00
examples/SPIFlash_ReadWrite Update SPIFlash_ReadWrite.ino 2020-06-03 16:58:33 -04:00
.travis.yml Update .travis.yml 2020-06-12 10:14:42 -04:00
License.txt add license file 2018-05-30 09:19:53 -04:00
README.md Update README.md 2018-05-30 09:20:31 -04:00
SPIFlash.cpp Move SPI.begin() per Issue#20 2018-05-23 12:35:20 -04:00
SPIFlash.h add blockErase64K() 2015-11-10 10:35:25 -05:00
keywords.txt Add readUniqueId() to get unique 64 bit MAC 2014-05-29 14:32:19 -04:00
library.json PlatformIO Library Registry manifest file 2015-01-16 21:40:15 +02:00
library.properties update library.properties 2018-05-26 18:42:35 -04:00

README.md

SPIFlash

Build Status GitHub release GitHub issues GitHub pull requests license

Arduino/Moteino library for read/write access to SPI flash memory chips. This works with 256byte/page SPI flash memory such as the 4MBIT W25X40CLSNIG used on Moteino for data storage and wireless programming.
For instance a 4MBit (512Kbyte) flash chip will have 2048 pages: 256*2048 = 524288 bytes (512Kbytes).
Minimal modifications should allow chips that have different page size to work.
DEPENDS ON: Arduino native SPI library.
This library was primarily developed to enable safe wireless programming on Moteino nodes and Moteino based applications such as the SwitchMote. This has been documented at lowpowerlab. Dualoptiboot (all AVR based Moteinos come with it) and RFM69_OTA WirelessProgramming library are required to be able to wirelessly re-flash a remote Moteino.

Installation

Copy the content of this library in the "Arduino/libraries/SPIFlash" folder.
To find your Arduino folder go to File>Preferences in the Arduino IDE.
See this tutorial on installing Arduino libraries.

License

Copyright (c) 2013-2018 by Felix Rusu felix@lowpowerlab.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.