Variable "<file>" names in FemtoBasic / SDHC, SDXC
Duane C. Johnson
Posts: 955
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
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
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.