Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Cowascript - AVRDUDE HEX uploader etc for MacOS & Linux on: September 29, 2013, 01:10:33 am
I know this is an old thread but I just wanted to send a THANK YOU to cowasaki. This is exactly what I needed. There are plenty of GUI options for uploading HEX files in Windows, but this appears to be the only option on OS X. Cheers.
2  Using Arduino / Storage / Re: SdFat file index questions on: September 28, 2013, 11:00:09 am
Ok, thank you for the clear explanation.
3  Using Arduino / Storage / Re: SdFat file index questions on: September 26, 2013, 11:12:59 am
One more simple question for you. How can I check the current working directory name? I basically want to do something like this:

Code:
if (sd.cwd() == "/00system/logo") {
   doStuff();
}
4  Using Arduino / Storage / Re: Need help porting IniFile library to work with SdFat on: September 02, 2013, 09:47:13 pm
The original library had a bug that would fall into an infinite loop if you searched for a non-existing "section" in an INI file. I've attached a fixed version of the SdFat port.
5  Using Arduino / Storage / SdFat file index questions on: August 30, 2013, 01:22:22 pm
I have some more basic questions about using the SdFat library.

1) What exactly are file indexes? Does every file and directory on the entire drive have a unique one, or are they relative to each directory? I noticed that I can increment them forever, and they will loop back around. So, file index 10 might open the first file on my sd card, and index 13543 might open the same file.

2) I know SdFat only supports 8.3 filenames, but does it support the full 65,534 files per directory in FAT32 formatted sd cards?

3) Is there an easy way to have OpenNext use alpha numeric sorting instead of opening the next file index?

Thanks. These are questions that have been on my mind. Hopefully someone can straighten me out.
6  Using Arduino / Storage / Re: Need help porting IniFile library to work with SdFat on: August 24, 2013, 12:43:24 pm
You are one of the great ones, fat16lib. Thank you so much!!!
7  Using Arduino / Storage / Need help porting IniFile library to work with SdFat on: August 23, 2013, 10:42:35 pm
I need this:
https://github.com/stevemarple/IniFile

To work with this:
https://code.google.com/p/sdfatlib/

As written, IniFile works with the native Arduino SD library. I took a stab at converting it over, but I got stuck with about half of the errors. Can anyone help out a noob? I can offer you great amounts of praise and virtual high fiving in return.
8  Using Arduino / Storage / Re: SdFat variables + constants in path names on: July 07, 2013, 12:07:23 pm
Thanks for the pointer, PaulS.

In case any other noobs ever need a solution to this, it turns out that paths are relative to the current working directory. All I needed to do was store the folder name as a var, change my working directory to that, and then load my config.txt file.

Code:
char folder[] = "mario";
sd.chdir(folder);
myFile.open("config.txt", O_READ);
9  Using Arduino / Storage / SdFat variables + constants in path names on: July 06, 2013, 06:18:43 pm
I'm a novice Arduino coder. Can someone please explain if it's possible to include variables in a path name when opening files using the SdFat library? For example, I want to open "mario/config.txt" kind of like this:

Code:
char folder[] = "mario";
myFile.open(folder + "/config.txt", O_READ))

But of course that doesn't concatenate properly. I discovered I can concatenate the two strings using strcat and pass that to myFile.open, but that eats up 11 bytes of SRAM (/config.txt) with static text. I'm very low on SRAM so every byte counts. Any suggestions?
10  Development / Other Software Development / A Dark IDE Theme on: September 26, 2012, 02:46:32 pm
I took the theme from ArduOpen and modified it a bit, adding back the default icons/tabs and tweaking some colors. I figured I'd share it in case anyone else was having a hard time staring at the bright default IDE and couldn't find any good dark alternatives. Props to the ArduOpen team for their great color choices.

http://www.ledseq.com/downloads/arduino_theme.zip

EDIT: To install a theme (at least on Windows), rename the "theme" folder in your /lib folder to something else like "theme_original" and then copy the theme folder in the zip I provided into /lib instead. Restart the IDE.
Pages: [1]