Hi everyone,
I am facing a bit of an issue, I am working with an old alcated 16x02 LED sign (alcatel 3BD19232AC for the curious) and wanted to revive it by hooking it up to an arduino.
I got it to work, i can print messages, change colors, move the cursor etc. That is where i hit my issue.
To move the cursor, I print this to the Serial port :
Serial.print("\x03");
This would move the cursor to the third character of the first row, or
Serial.print("\x1e");
moves the cursor to the fourteenth character of the second row.
I would like not to have the codes hardcoded, ideally make a function like this :
moveCursor(int row, int col);
that would move the cursor to the specified position. I have successfully done it...with a huge 100 lines switch() case:
which, to me seems less than ideal.
Does anyone has a better way to do this ?