Go Down

Topic: Split string (Read 1 time) previous topic - next topic

majenko

What's with the extra { and } in your code?


PeterH

As Majenko says, you've got some extra { and } in your code. I suspect that these are places where you intended to put 'if' statements to select which line to display on but for some reason you haven't added them.

You probably want to have something like:

Code: [Select]

if(strcmp(dataStr, "E") == 0)
{
    matrix.setCursor(0, 0);
    matrix.print(mostSignificantDigit1);
    matrix.writeScreen();
}


etc
I only provide help via the forum - please do not contact me for private consultancy.

thmmax

Thank you! I've deleted the extra { } and added the if function and it looks pretty good 8)

Go Up