Shop OBEX P1 Docs P2 Docs Learn Events
SD card Question: File name extensions — Parallax Forums

SD card Question: File name extensions

Circuitbuilder9Circuitbuilder9 Posts: 85
edited 2012-04-07 11:58 in Propeller 1
Hi, guys.

Here's a question out for other people to access:

Is there a table or list of SD card (fsrw type) file extension names, as i am aware that the ".extension" affects the file type, and the character after "sdfat.popen(string(
.
) "character"; what does that mean? Are there different characters to put at the end?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-04-05 19:14
    There are lists of generally accepted file extensions for the various operating systems. They're not strictly enforced although many are mostly honored. .exe is usually an executable file. .txt is a plain text file. .doc is some kind of word processing document file, but, although Microsoft sees this as a Word file, there are some other programs that have different assumptions. On the Propeller, the file extension only matters to the extent that you expect your desktop or laptop computer to recognize it.

    The 2nd parameter to .popen is a single character value that indicates what kind of file open to perform. "r" opens the file for reading only. "w" opens the file for writing or reading. "a" opens the file for writing with the file positioned at its end. "d" deletes the file.
  • Circuitbuilder9Circuitbuilder9 Posts: 85
    edited 2012-04-06 11:09
    One last question:
    what does the CD connection do? Why is it significant?
    When i looked at the gadget gangster tutorial, it only required 4 connections (minus power and ground), so i was confused at the CD point on the Parallax's mSD documentation.
  • KyeKye Posts: 2,200
    edited 2012-04-06 11:44
    The CD pin is useful for detecting if the SD card is present. It gets pulled low when an SD card is inserted.
  • Circuitbuilder9Circuitbuilder9 Posts: 85
    edited 2012-04-06 13:13
    The CD pin is useful for detecting if the SD card is present. It gets pulled low when an SD card is inserted.

    So,when i use that pin to incorporate it into the Gadget Gangster project, do i need to modify any code?
  • Mike GreenMike Green Posts: 23,101
    edited 2012-04-06 14:45
    It depends on which SD-card driver you're using. Kye's driver supports it. Rokicki's (FSRW) does not.
  • codevipercodeviper Posts: 208
    edited 2012-04-07 11:58
    yeah, I was a little confused by that too. so i just followed the protoboard cookbook by jeff ledger and connected the 4 pins it works real good on kye's 3.1 driver.
    how needed is the CP?
    plus i wanted to have SD pins 0 to 3 and NES ports pins 4 to 7 and don't want to go over 4 connections for the SD card.
    PS. on KYEdos i took out the serial port terminal driver and just use the TV terminal and i name all my binaries to .EXEs so i can just type in the name of the program to run it.
    I am working on a keystroke interceptor on an ATMEGA so i can hit CTRL-ALT-DELETE and reset the prop :lol: but first i want to get my SPI graphics page driver at least working.
Sign In or Register to comment.