Skip to content
A simple DataFlash library for sequential reading and writing.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Eagle files

Simple DataFlash

A simple DataFlash library for sequential reading and writing. For more information, and the circuit for a simple DataFlash board, see:

The DataFlash library consists of the following seven routines:


Must be called once to set up the I/O lines to interface with the DataFlash chip. It returns true if the flash chip was found successfully.


Call this once before writing to the DataFlash. It erases the entire DataFlash chip and sets the address pointer to the start of the chip.

DataFlash.WriteByte(uint8_t byte)

Writes a byte of data to the next DataFlash memory location.


Call this once after writing to the DataFlash.

DataFlash.BeginRead(unsigned long addr)

Call this once before reading from the DataFlash with the start address for reading.


Reads and returns a byte of data from the next DataFlash memory location.


Call this once after reading from the DataFlash.

You can’t perform that action at this time.