Hey guys, I wrote a sketch on my arduino using a switch statement to determine what will be written to an LCD, it looks like:
switch(timbreread){
case 0:
timbre = "sine wave";
break;
case 1:
timbre = "square wave";
break;
case 2:
timbre = "sawtooth wave";
break;
case 3:
timbre = "triangle wave";
break;
case 4:
timbre = "random wave 1";
break;
case 5:
timbre = "random wave 2";
break;
case 6:
timbre = "random wave 3";
break;
}
The variable timbreread is merely a number between 0 and 6 to select the correct timbre. The value timbre is stored as a String. Since I don't get strings on maple, how can I implement this snippet of code? I've tried using char and it just doesn't seem to work.
Thanks,
Harris