mrburnette:
tmd3:
jcaserta:
Now I just need to figure out how to convert a CSV into an array and store it in program memory...To initialize an array, either in RAM or with PROGMEM, you put the values inside curly brackets, and separate them by commas. CSV stands for, "comma separated values." Does that suggest anything to you?
I am near certain the Op knows what a CSV is! My impression is s/he was just talking out loud. Your statement that I bolded above is not helpful., IMO.
Yes, you are correct that I am very familiar with CSVs, thank you. It's arduino that's new to me. But if I'm making something way more complicated than it needs to be I'd love it if you told me that but again it's a 1200x4 array. So the CSV looks like:
1,100,110,100,2000
2,120,115,110,2050
3,125,113,112,2100
etc.
In order to put it into the code don't I need to add curly brackets into there and extra commas and stuff? So:
int myWayTooLongArray[1200][4]={
{1,100,110,2000},
{2,120,115,110,2050},
{3,125,113,112,2100},
};
Except that it's 1200 rows long so there's no way I'm converting from CSV to the second format manually like you're suggesting. Of course I could read it in as text programmatically in another language and have it output text with the curly brackets and stuff and that may be what I do but I figure there's probably an easier way. That's not something I can readily do - I'm very good with VBA and Excel but that's more of a normal text reading type function to reformat the text like that.