Git Product home page Git Product logo

arduino_due_sd_hscmi's Introduction

SD HSCMI for Macchina M2

Libraries and Examples for Macchina M2 HSCMI (High Speed MultiMedia Card Interface). Provides faster read/write to SD cards while freeing up SPI interface.

Install

  1. Download the files
  2. Move the folder Arduino_Due_SD_HSCMI to your Arduino Libraries
  3. Move the folder SD_HSMCI to your Arduino Libraries (Same level as Arduino_Due_SD_HSCMI)

Storage manipulation

  • The SD object will be created on #include <Arduino_Due_SD_HSCMI.h>
  • Use SD.MakeDirectory to create a directory

Creating a file

  • Create a new FileStore with FileStore * f = new FileStore()
  • Initiate the File pointer with f->Init()
  • Open the File Structure with f->Open([DIRECTORY], [FILENAME], [FILE_WRITE | FILE_READ])
  • Write with f->Write([BUFFER], [LENGTH]);
  • Close f->Close()

EXAMPLES

There are 6 example sketches included in Arduino_Due_HSCMI-master Library. List and description of examples in order of complexity:

  • DirManipulation creates new directory, rename directory and delete directory from SD card
  • FileManipulation creates new file, open/close file, rename file and delete file
  • FileList creates files and writes raw data to them, checks writing times and creates a list of files on SD card
  • Datalogger_dif creates new file, reads GPIO and log data to SD card
  • Dumpdata_SerialtoSD creates new file than reads from SerialUSBand writes to the file
  • Dumpdata_SDtoSerial creates new file with raw data than reads from file and print to SerialUSB

DEBUG

HSCMI library has the Debug option which can be enabled (DEFAULT) or disabled. To change that, please open Arduino_Due_SD_HSCMI.h and change constant SD_DEBUG to “true” (enabled) or false (disabled).

arduino_due_sd_hscmi's People

Contributors

collin80 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.