3 formatting
source | link

Too many pieces of the puzzle are missing for us to venture a guess on what is going wrong: - The output you get (both in the LCD and the serial console) - The message sent

  • The output you get (both in the LCD and the serial console)

  • The message sent

One thing that strikes me as a potential problem is the

switch(message[1])

line. If you want to check the first character received, it should be

switch(message[0])

That said, it would perhaps help you if you tried to split the program into pieces and make sure each one works before advancing to the next. Are you sure the LCD pin connections and initialisation line match? (I know from experience it is very easy to mess up and put the pin numbers in the wrong order). It would help to put the following code right after the lcd.begin line (in your setup() function):

  lcd.setCursor(0, 0);
  lcd.print("Initialised!");

Now if this line doesn't display correctly, you will know it is the lcd connection/initialisation code that is at fault. Otherwise, you will concentrate on your communication code.

Give us more information and we 'll be able to help more.

Too many pieces of the puzzle are missing for us to venture a guess on what is going wrong: - The output you get (both in the LCD and the serial console) - The message sent

One thing that strikes me as a potential problem is the

switch(message[1])

line. If you want to check the first character received, it should be

switch(message[0])

That said, it would perhaps help you if you tried to split the program into pieces and make sure each one works before advancing to the next. Are you sure the LCD pin connections and initialisation line match? (I know from experience it is very easy to mess up and put the pin numbers in the wrong order). It would help to put the following code right after the lcd.begin line (in your setup() function):

  lcd.setCursor(0, 0);
  lcd.print("Initialised!");

Now if this line doesn't display correctly, you will know it is the lcd connection/initialisation code that is at fault. Otherwise, you will concentrate on your communication code.

Give us more information and we 'll be able to help more.

Too many pieces of the puzzle are missing for us to venture a guess on what is going wrong:

  • The output you get (both in the LCD and the serial console)

  • The message sent

One thing that strikes me as a potential problem is the

switch(message[1])

line. If you want to check the first character received, it should be

switch(message[0])

That said, it would perhaps help you if you tried to split the program into pieces and make sure each one works before advancing to the next. Are you sure the LCD pin connections and initialisation line match? (I know from experience it is very easy to mess up and put the pin numbers in the wrong order). It would help to put the following code right after the lcd.begin line (in your setup() function):

  lcd.setCursor(0, 0);
  lcd.print("Initialised!");

Now if this line doesn't display correctly, you will know it is the lcd connection/initialisation code that is at fault. Otherwise, you will concentrate on your communication code.

Give us more information and we 'll be able to help more.

2 spelling (two -> too)
source | link

TwoToo many pieces of the puzzle are missing for us to venture a guess on what is going wrong: - The output you get (both in the LCD and the serial console) - The message sent

One thing that strikes me as a potential problem is the

switch(message[1])

line. If you want to check the first character received, it should be

switch(message[0])

That said, it would perhaps help you if you tried to split the program into pieces and make sure each one works before advancing to the next. Are you sure the LCD pin connections and initialisation line match? (I know from experience it is very easy to mess up and put the pin numbers in the wrong order). It would help to put the following code right after the lcd.begin line (in your setup() function):

  lcd.setCursor(0, 0);
  lcd.print("Initialised!");

Now if this line doesn't display correctly, you will know it is the lcd connection/initialisation code that is at fault. Otherwise, you will concentrate on your communication code.

Give us more information and we 'll be able to help more.

Two many pieces of the puzzle are missing for us to venture a guess on what is going wrong: - The output you get (both in the LCD and the serial console) - The message sent

One thing that strikes me as a potential problem is the

switch(message[1])

line. If you want to check the first character received, it should be

switch(message[0])

That said, it would perhaps help you if you tried to split the program into pieces and make sure each one works before advancing to the next. Are you sure the LCD pin connections and initialisation line match? (I know from experience it is very easy to mess up and put the pin numbers in the wrong order). It would help to put the following code right after the lcd.begin line (in your setup() function):

  lcd.setCursor(0, 0);
  lcd.print("Initialised!");

Now if this line doesn't display correctly, you will know it is the lcd connection/initialisation code that is at fault. Otherwise, you will concentrate on your communication code.

Give us more information and we 'll be able to help more.

Too many pieces of the puzzle are missing for us to venture a guess on what is going wrong: - The output you get (both in the LCD and the serial console) - The message sent

One thing that strikes me as a potential problem is the

switch(message[1])

line. If you want to check the first character received, it should be

switch(message[0])

That said, it would perhaps help you if you tried to split the program into pieces and make sure each one works before advancing to the next. Are you sure the LCD pin connections and initialisation line match? (I know from experience it is very easy to mess up and put the pin numbers in the wrong order). It would help to put the following code right after the lcd.begin line (in your setup() function):

  lcd.setCursor(0, 0);
  lcd.print("Initialised!");

Now if this line doesn't display correctly, you will know it is the lcd connection/initialisation code that is at fault. Otherwise, you will concentrate on your communication code.

Give us more information and we 'll be able to help more.

1
source | link

Two many pieces of the puzzle are missing for us to venture a guess on what is going wrong: - The output you get (both in the LCD and the serial console) - The message sent

One thing that strikes me as a potential problem is the

switch(message[1])

line. If you want to check the first character received, it should be

switch(message[0])

That said, it would perhaps help you if you tried to split the program into pieces and make sure each one works before advancing to the next. Are you sure the LCD pin connections and initialisation line match? (I know from experience it is very easy to mess up and put the pin numbers in the wrong order). It would help to put the following code right after the lcd.begin line (in your setup() function):

  lcd.setCursor(0, 0);
  lcd.print("Initialised!");

Now if this line doesn't display correctly, you will know it is the lcd connection/initialisation code that is at fault. Otherwise, you will concentrate on your communication code.

Give us more information and we 'll be able to help more.