Skip to content

Latest commit

 

History

History

SdCard

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

SdCard

This example uses the fatfs library from http://elm-chan.org/fsw/ff/00index_e.html.

SdCard.cpp uses the library, and diskio.cpp provides the functions called by the library to access Logan Nano's SD card

  1. Put a file "hallo.txt" with some text on an SD card, insert the card in the Longan Nano.
  2. Run the program which
    • tries to read file "hallo.txt" and prints the content to the LCD screen
    • tries to read file "hallo.neu" and prints the content to the LCD screen (will fail on first run)
    • writes the file "hallo.neu"
    • writes data to the file "hallo.data", reads the data back and compares it with the original data
  3. Press reset, to see the same results, but this time "hallo.new" will show some text