Hello, apologies in advance if I have done something stupid, its my first time posting.
I have been sending data over the serial port to my Arduino to print to an LCD with LiquidCrystal library. This works fine, however I have tried to send a special character to the Arduino hoping it would recognise it, not print the aforementioned character and also make a noise on a piezo buzzer. For some reason whenever I send this character it is printed by the LCD and the buzzer stays silent. I have included the problematic part of the code below.
I feel like I am missing something simple, any help would be greatly appreciated
if(Serial.available()){
char character = Serial.read();
if (character == "`"){
tone(5, 500, 100);
delay(50);
}
if (character != "`"){
lcdprint = character;
lcd.setCursor(column, row);
lcd.write(lcdprint);
column = column + 1;
if (column > 15){
column = 0;
row = row + 1;
row = row % 2;
}
}
}