Pages: 1 [2]   Go Down
Author Topic: Split string  (Read 1046 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3969
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
Replacement for the Arduino IDE: UECIDE - Proper serial terminal, graphing facilities, plugins, overhauled internals.
Java isn't bad in itself, but it has enabled morons to write programs.

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11197
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
if(strcmp(dataStr, "E") == 0)
{
    matrix.setCursor(0, 0);
    matrix.print(mostSignificantDigit1);
    matrix.writeScreen();
}

etc
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you! I've deleted the extra { } and added the if function and it looks pretty good smiley-cool
Logged

Pages: 1 [2]   Go Up
Jump to: