LCD-Display showing phrase according to bluetooth input

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!!

When do we need to hand in our assignment?

Please remember to use code tags when posting code

Hi
Your code is correct;
But there are some ";" missing which will cause compilation error.

and Serial. must be capital "S" if (serial.available())
IF use if If (Daten == '1')
The option "0"
must be like this:

 If (Daten == '0')
  {
    lcd.clear();
  }

Read the forum guidelines to see how to properly post code and some information on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

You can go back and fix your original post by highlighting the code and clicking the </> in the menu bar.
code tags new