Difference between revisions of "Mixly Block Category - Storage"

From Microduino Wiki
Jump to: navigation, search
(Write File with Data onto SD Card)
Line 1: Line 1:
=Write File with Data onto SD Card=
+
=SD=
 +
==Write Data to a File on the SD Card==
 
This block writes data to a file on the SD card when using the [[SD module]].
 
This block writes data to a file on the SD card when using the [[SD module]].
  
Line 15: Line 16:
 
Read more here: https://www.arduino.cc/en/reference/SD , https://www.arduino.cc/en/Reference/SDopen , https://www.arduino.cc/en/Reference/FilePrint
 
Read more here: https://www.arduino.cc/en/reference/SD , https://www.arduino.cc/en/Reference/SDopen , https://www.arduino.cc/en/Reference/FilePrint
  
=Write a Byte to EEPROM=
+
=EEPROM=
=Read a Byte from EEPROM=
+
==Write a Byte==
=Write a Long to EEPROM=
+
==Read a Byte==
=Read a Long to EEPROM=
+
==Write a Long==
 +
==Read a Long==

Revision as of 01:23, 23 February 2017

SD

Write Data to a File on the SD Card

This block writes data to a file on the SD card when using the SD module.

Below are the steps that occurs:

  1. Opens a file on the SD card. If the file is opened for writing, it will be created if it doesn't already exist (but the directory containing it must already exist).
  2. Print data to the file. Optionally, a new line (return) is appended after the data if NewLine is true.

The inputs are as follows:

  • Filename - The name of the file to open in the SD card which will be written to.
  • Data - The data that will be written to the end of the opened file.
  • NewLine (boolean) - True, will append a Newline (return) to end of Data. False, will skip appending a Newline to the end of Data.


Read more here: https://www.arduino.cc/en/reference/SD , https://www.arduino.cc/en/Reference/SDopen , https://www.arduino.cc/en/Reference/FilePrint

EEPROM

Write a Byte

Read a Byte

Write a Long

Read a Long