Shop OBEX P1 Docs P2 Docs Learn Events
Variable "<file>" names in FemtoBasic / SDHC, SDXC — Parallax Forums

Variable "<file>" names in FemtoBasic / SDHC, SDXC

Duane C. JohnsonDuane C. Johnson Posts: 955
edited 2011-02-27 20:45 in Propeller 1
OK, I just came into the modern world and installed an SD card. This works quite nicely in DongleBasic on my PropStick. My particular SDSC card is an antique 32MB one Yes, 32 mega byte. Old huh! I will be getting a 2GB SDSC one shortly.

But, there's always a but!

I want to store and read data in separate files. Files with a number in the files name. The simplest would be a simple number in the name.

I understand there are essentially no string functions in FemtoBasic. So I can't figure a way to have "<file>" contain variable names.

Is there a trick to do this?

Question 2, Will there be an upgrade to FemtoBasic that can run SDHC, SDXC cards. I would really like to use a 16GB card for use as a very large data table that contains solar position data for a heliostat project.

Duane

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-02-27 20:13
    The only way to have a filename contain variable information would be to modify the FemtoBasic interpreter. There are no plans to do so, but it wouldn't be hard to do.

    There will be no upgrade to FemtoBasic for SDHC or SDXC cards. FemtoBasic itself can handle FAT32, but the low level SD card I/O can't handle sector numbers greater than 23 bits which limits it to 4GB. Other versions of FemtoBasic, like BoeBotBasic, etc. are limited to FAT16.
  • KyeKye Posts: 2,200
    edited 2011-02-27 20:45
Sign In or Register to comment.