Giovanni83:
But what I meant, is how do you exactly convert the "ABC" to the "TID-Signal"
basically, the ASCII number corresponding to the carachter is sent to the display in serial fashion. The uppercase A, for example, corresponds to binary 1000001, so this number is sent to the tid, using serial communication with a specific protocol. In the carluccio page you linked before are specified all the timings and rules you need to follow in order to succesfully transmit data. Obviously a detailed explanation would be a bit longer, but the purpose of the library is to avoid users having to deal with all of this
Well it worked .. at least a bit.
I could send a simple text to the TID. with
#include <TID12.h>
TID MyTid(7,5,6);
void setup() {
MyTid.space1_init(0,7);
}
void loop() {
MyTid.display_message("12345678",1,1);
}
Although its not dynamic but static Text, there is already a problem. Every minute (when the clock on the TID counts a new minute) the display clears for 0,5-1 sec.
Nevermind when I try out two different strings for example:
MyTid.display_message("12345678",1,1);
delay(500);
MyTid.display_message("87654321",1,1);
delay(500);
It works somehow, but the timing is anything but accurate XD
I mean instead of this pattern: ------------------------------
Its something like this: ------------------------_------
I tried to remove the delays to add another delays, to raise this speed value (X) in "MyTid.display_message("87654321",X,1);"
But no success.
Additionally I would like to try the following to have some dynamic output to send to the TID like if I would want to display the engines "RPM" or something. Smooth and fast refresh rate is very important.....:
#include <TID12.h>
TID MyTid(7,5,6);
void setup() {
MyTid.space1_init(0,7);
}
void loop() {
int i = 0;
for(i=0;i<1000;i++)
{
MyTid.display_message(i,1,1);
delay(500);
}
}
it says.
sketch_may12a.ino: In function 'void loop()':
sketch_may12a:14: error: invalid conversion from 'int' to 'const char*'
sketch_may12a:14: error: initializing argument 1 of 'String::String(const char*)'