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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy