I dont understand what I need to do with the SD card. what is the file type? wav? and how should i arrange the folders on the sd card?
Does the error "sd card not found" go away once the sd card is set up properly?
If you could help me with what steps I need to take to finish this project, that would be awesome, thanks
"sd card not found" should not happen if the card is properly formatted and inserted.
However, you may still get "font directory not found", which means that it can't find a font in the directory specified by the configuration file.
There is some flexibility in where you put stuff, on your sd card, but what I would recommend is this:
For each sound font that you want to use, create a directory on the SD card, the name of the directory can be anything you want, but must be shorter than 8 characters.
Mine are currently "font1", "font2", "teensysf", "graflex7" (and a few others).
Each directory contains a bunch of wav files that make up a sound font, if you don't have any sound fonts, go buy one from soundfonts.com, or go find some free ones. Both plecter and NEC style fonts will work. Fonts may also come with readme files and ini files, which would also go in the same directory.
I also have a directory called "tracks" which contain music from star wars (in 44100 hz mono wav format) which can be played while you're using your saber. For instance there is a file in there called "cantina.wav" which contains the cantina band song.
In the config file, there is a section called the preset array, which has a bunch of entries that look something like:
{ "fontdir", "track.wav",
StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"},
For this preset, the font directory is "fontdir" and the track is called "track.wav". To work with the examples given above, you would change this to:
{ "graflex7", "tracks/cantina.wav",
StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"}, }
(And then do the programming again.)