Shop OBEX P1 Docs P2 Docs Learn Events
Getting started with SD cards — Parallax Forums

Getting started with SD cards

science_geekscience_geek Posts: 247
edited 2010-08-30 05:41 in Propeller 1
I am getting into sd cards and data logging and reading mp3 files for my chair. I am trying to wrap my head around the SD2.0_FATEngine. So far I have gotten it to mount an sd card, but how would I go about creating a new file, that's all I need it to do now. Do I need to mount a partition or directory or is that higher level stuff that I don't need to worry about now? How do I "start" the card to get it ready for reading and writing is basically what I'm asking?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-08-29 21:23
    You need to create the directory entry using "newFile", then open the file for writing using "openFile". Remember to call "closeFile" when you're done with it.
  • KyeKye Posts: 2,200
    edited 2010-08-30 05:41
    Review the included demo and it should start making sense on what to do. In particular look at the code for "programTest".
Sign In or Register to comment.