I come from the world of basic and I recently approached C. I'm trying to make a routine to display messages on a TFT, but what worked in basic, I can't get it to work in C. Can you tell me where am I wrong?
Code: Select all
char MessTextHold[40];
unsigned short MessageCtrl;
void main() {
VisualMessage("WAIT FOR START SIGNAL ...");
}
void VisualMessage(char MessText[40]) {
MessageCtrl = strcmp(MessText,MessTextHold);
if (MessageCtrl != 0) {
TFT_Rectangle(32,213,309,229);
TFT_Write_Text(MessText,36,213);
MessTextHold = MessText;
}
}
Assigning to non-Ivalue
Implicit conversion of pointer to int
Where am I wrong? Thanks to anyone who will help me understand ...