I have successfully managed to send various messages from one Arduino to another. I have set up one with four buttons and a an RF transmitter. I'm using the Virtual Wire library. When an individual button is pressed, the RF receiver on the second Arduino displays the message in it's Serial Monitor. I want this message also appear on a TFT that is also attached to the second Arduino. The problem is that the TFT displays odd characters.
For instance, if I send the message "Message 1", the TFT displays y 1/4 1/2 1/2 a N W h
If I send "Message 2", the TFT displays y 1/4 1/2 1/2 a N W i
Obviously y = M, 1/4 = e, 1/2 = s ...and so on
***There's a letter missing in each of the example above, I think it corresponds to the 5th character. I'll check when I get a chance tomorrow)
(The fractions above are one character each and the N has a line above it).
The code to print to the Serial Monitor is
Serial.print((char )buf*);* The code to print to the TFT is tft.print(((char )buf*), ST7735_WHITE);* Any help would be appreciated
I don't understand why you
A) Can't post ALL of your code
B) Don't NULL terminate the array and use it as a string
C) Use Tools + Auto Format to fix your horrid indenting