Yay, the board is working!
Kudos to sang-drax, for working SMART as opposed to hard! Congrats.
quzah, C++ vs C actually did make a little difference in shaving some characters off:
1) for each of your 3 includes, useinstead ofCode:
which will save 6 characters (3 spaces, 3 characters)Code:
2) replace the two-line X and Y #define directives (26 chars) with a single line const
const int Y=11,X=23;
That's 12 characters trimmed. One of the rare instances in which C++ is not biggified compared to C!!
Also, I have a question about your two macros:
Is that "A" in the second line supposed to be substituted from the first line? I didn't know you could do that (macros within macros). Is that standard, or implementation dependent?Code:
#define A _[y][x]