c - Sound string declaration hangs Arduino compiler -


i have string of characters 8 wav file i'm trying import arduino project. declare this

const unsigned char sounddata_data[] progmem = "€€[fill these brackets in 6500 other characters]"; 

when try run code, compiler doesn't give me errors. hangs , never finishes compiling. know it's line because if declare shorter string, or other types of declaration (like putting commas between each char), works.

is there line length limit in arduino code that's stopping me?

if have accept , put commas between every character, there method?

i write simple program it, have number of sound files convert , want make easy , simple read code.

edit

i ended writing program. converts each data byte ints delimited commas. still bothers me old way wouldn't work , way take more time, @ least have fall on

#include <stdio.h> int main(int argc, char *argv[]) {     file *r, *w;     unsigned char ch;     r = fopen(argv[1], "rb");     w = fopen("out.txt", "w");     while (fscanf(r, "%c", &ch) != eof) {         fprintf(w, "%d, ", (int)ch);     }     return 1; } 

if it's line length problem can break strings this:

const unsigned char sounddata_data[] progmem = "€€[fill these brackets "                                                "in 6500 "                                                "other chars]"; 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -