All Projects → BlockoS → arduino-dataflash

BlockoS / arduino-dataflash

Licence: other
Support for Atmel Dataflash for the Arduino

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to arduino-dataflash

telnetspy
Telnet Server For ESP8266: Cloning the serial port via Telnet. "Debugging over the air"
Stars: ✭ 41 (+78.26%)
Mutual labels:  arduino-library
Arduino-Debug
On-target sketch debugger for Arduino
Stars: ✭ 20 (-13.04%)
Mutual labels:  arduino-library
Adafruit TSL2591 Library
This is an Arduino library for the TSL2591 digital luminosity (light) sensors.
Stars: ✭ 46 (+100%)
Mutual labels:  arduino-library
TP Arduino DigitalRain Anim
A library that represents Digital Rain Animation on color displays that support TFT_eSPI
Stars: ✭ 80 (+247.83%)
Mutual labels:  arduino-library
discord-arduino-bot
Easy to discord control your arduino with commands
Stars: ✭ 13 (-43.48%)
Mutual labels:  arduino-library
Grove LoRa 433MHz and 915MHz RF
No description or website provided.
Stars: ✭ 26 (+13.04%)
Mutual labels:  arduino-library
recon
The RECON project creates library for Nios II Microcontroller System and Tool chain. The library includes a collection of hardware configurations and Arduino-style software APIs.
Stars: ✭ 21 (-8.7%)
Mutual labels:  arduino-library
SparkFun TB6612FNG Arduino Library
No description or website provided.
Stars: ✭ 40 (+73.91%)
Mutual labels:  arduino-library
BMP180 Breakout Arduino Library
Arduino libraries for the BMP180 pressure sensor breakout board
Stars: ✭ 30 (+30.43%)
Mutual labels:  arduino-library
Somfy Remote Lib
Emulate a Somfy remote using a 433.42 MHz transmitter.
Stars: ✭ 43 (+86.96%)
Mutual labels:  arduino-library
SparkFun MicroView Arduino Library
An Arduino library for the MicroView - a chip-sized Arduino with a built-in OLED, available from SparkFun Electronics
Stars: ✭ 20 (-13.04%)
Mutual labels:  arduino-library
Arduino-BLE-MIDI
MIDI over Bluetooth Low Energy (BLE-MIDI) 1.0 for Arduino
Stars: ✭ 133 (+478.26%)
Mutual labels:  arduino-library
SparkFun VL53L1X Arduino Library
A library for the laser based VL53L1X Time Of Flight distance sensor capable of detecting a target 4m away!
Stars: ✭ 57 (+147.83%)
Mutual labels:  arduino-library
NASSCOM-MHRD-IOT-Practical-Module 1-2
Arduino on TinkerCad
Stars: ✭ 26 (+13.04%)
Mutual labels:  arduino-library
EthernetENC
Ethernet library for ENC28J60. This is a modern version of the UIPEthernet library. EthernetENC library is compatible with all Arduino architectures with Arduino SPI library with transactions support. Only include EthernetENC.h instead of Ethernet.h
Stars: ✭ 58 (+152.17%)
Mutual labels:  arduino-library
AD9833-Library-Arduino
Library to control the AD9833 waveform generator
Stars: ✭ 88 (+282.61%)
Mutual labels:  arduino-library
HCSR04
Arduino library for HC-SR04, HC-SRF05, DYP-ME007, BLJ-ME007Y, JSN-SR04T ultrasonic ranging sensor
Stars: ✭ 27 (+17.39%)
Mutual labels:  arduino-library
SparkFun CAN-Bus Arduino Library
No description or website provided.
Stars: ✭ 132 (+473.91%)
Mutual labels:  arduino-library
OpenWeather
Arduino library to fetch weather forecasts from OpenWeatherMap
Stars: ✭ 88 (+282.61%)
Mutual labels:  arduino-library
ArduinoSpritzCipher
Spritz encryption system portable C library, CSPRNG, cryptographic hash and MAC functions, symmetric-key data encryption, and general-purpose functions. It's also an Arduino library.
Stars: ✭ 67 (+191.3%)
Mutual labels:  arduino-library

Arduino DataFlash library

This is library adds support for the AT45DB SPI flash memory from Adesto Technology (which bought it from Atmel in 2012). At the moment only the D version is supported.

Hardware setup

DataFlash is 5V tolerant but you must power it with 3.3V.

Signal Arduino pin Dataflash
MISO 11 1
MOSI 12 8
SCK 13 2
SS 10 4
RESET user defined 3
WP user defined 5

Software setup

Copy the following filesto your library or sketch folder.

  • DataFlash.cpp
  • DataFlash.h
  • DataFlashCommands.h
  • DataFlashInlines.h
  • DataFlashSizes.h

DataFlash_test.cpp is a simple unit test program. It is built upon the arduino-tests library. The /examples/ directory contains some sample sketches.

Please refer to the doxygen documentation for a more detailed API description.

Example

The following example shows how to write and read on a AT45DB161D DataFlash.

#include <SPI.h>
#include "DataFlash.h"

static const int csPin    = 10;
static const int resetPin = 8;
static const int wpPin    = 7;

DataFlash dataflash;

void setup()
{
  uint8_t status;
  DataFlash::ID id;

  const char* dummyMessage = "Hello world";

  SPI.begin();

  dataflash.setup(csPin, resetPin, wpPin);
  dataflash.begin();

  status = dataflash.status();
  dataflash.readID(id);
  // For a brand new AT45DB161D dataflash
  //  status = BIN(00101100)
  //  id.manufacturer       = 0x1F;
  //  id.device[0]          = 0x26;
  //  id.device[1]          = 0x00;
  //  id.extendedInfoLength = 0x00;

  // Write "Hello world" to buffer 1.
  dataflash.bufferWrite(1, 0);
  for(int i=0; dummyMessage[i] != '\0'; i++)
  {
    SPI.transfer(dummyMessage[i]);
  }

  // Transfer buffer 1 to page 7.
  dataflash.bufferToPage(1, 7);

  // Read page 5.
  dataflash.pageRead(5, 0);
  for(int i=0; i<DF_45DB161_PAGESIZE; i++)
  {
    uint8_t data = SPI.transfer(0xff);
  }
}

void loop()
{
  // nothing
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].