Hello,
Iam trying to build wireless device which is connected to an lcd display. The displayis supposed to view a set Phrase depending on the number ur sending via bluetooth.
For example i want to send a "1" from the bluetooth terminal and then the arduino should display a phrase according to the set parameter "1". I want to make a list with a couple of phrases and the Number "0" is supposed to shut off the Display.
here is the code i've started with:
char Daten;
#include <LiquidCrystal_I2C.h>;
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
lcd.init();
lcd.backlight();
Serial.begin(9600);
}
void loop() {
if(serial.available())
{
[Daten=Serial.read](https://daten%3Dserial.read/)();
}
If (Daten=='1')
{
lcd.setCursor(0, 0);
lcd.print("10% Rabatt")
}
If (Daten=='0')
{
lcd.setCursor(0, 0);
lcd.print("")
}
}
A short sketch of the circuit would be highly appreciated too.
I really do appreciate ur patience.
Thanks in advance!!
