//wite code to memory simulation
void loop() {
// put your main code here, to run repeatedly:
}
//String str="5EA7011E;4E2401E7;E49A02B1;65C700B2;CAFD00B1;4FE0022E;819302B1;64B700B2;C55D0028;85F20228;88EE0228;A86502C4;3A0902B1;00A100C5;15C302C4;BEAD02C4";
void setup (void){
Serial.begin (115200);
delay(200);
String str1="5EA7011E;4E2401E7;E49A02B1;65C700B2;CAFD00B1;4FE0022E;819302B1;64B700B2;C55D0028;85F20228";
String str2="88EE0228;A86502C4;3A0902B1;00A100C5;15C302C4;BEAD02C4;9AF903E6;48C302B1;387602B1;98A202C5";
String str3="160300C6;0F7000B2;988C02C5;500502B2;BDAB02B0;B24602B0;D81300C3;309301E7;2AD500B0;AC8000C5";
String str4="364803E5;28AA02C6;7FF302C4;C790002E;F06603E5;0DFC01E6;C7E801E6;5CC503E6;866703E6;639B031E";
String str5="F23400C4;631F01E6;021B03E7;EB9502C5;CA2C011F;2B21031F;215C02B1;740800C5;59AF02B1;64E400B1";
String str6="2D2D02B2;1FEB02C4;165900B2;798B01E9;41A903E5;359503E6;754D00B1;25CE02C5;EOF";
handWriteCode(str1);
handWriteCode(str2);
handWriteCode(str6);
}
void handWriteCode(String str){
String strs[10];
int StringCount = 0;
// Split the string into substrings
while (str.length() > 0) {
int index = str.indexOf(';');
if (index == -1) { // No divider found
strs[StringCount++] = str;
break;
} else {
Serial.println( "" );
Serial.println(str.substring(0, index));
strs[StringCount++] = str.substring(0, index);
str = str.substring(index+1);
}
}
// Show the resulting substrings
/*
for (int i = 0; i < StringCount; i++) {
Serial.print(i);
Serial.print(": \"");
Serial.print(strs[i]);
Serial.println("\"");
}
*/
}