serial "commands" changing parts of code

i am working on a project with a ITEADUINO BT. it is an arduino with built in Bluetooth. i have it setup to wireless receive serial input. so just like if i had it plugged into the computer and sending data over serial with serial monitor. i want to be able to print text to a LCD from the serial but only if the text starts with a set symbol like ":" or ";" and than print what is after that without the symbol. for example i want to send ":hello!" on the serial monitor and the LCD should read "hello!" i also want it to store it in memory so when power is dis connect and plugged back in the LCD will print the same thing you set it to before you unplugged it. if needed i could also use a SD shield to store data if that's easier. i also need to do this with many parts of the code so ":" would print to the LCD and ";" would change another thing. i am hope this is possible and not to hard to do. if you need any more info let me know.

Yes, that's possible.

You might want to get familiar with your "shift" and "return" keys.

AWOL:
Yes, that's possible.

You might want to get familiar with your "shift" key and "return" keys.

I figured it was possible but i don't know how to do it. Sorry about mechanic mistakes typing fast.

but i don't know how to do it.

Break it down into steps.
Then work on each step
Finally put all the steps together.

We can help when you get stuck.

Read each character 1 at a time. If the character you are looking for then keep reading 1 at a time and display it. Keep doing this until you find a character you designate as the end character. Then start it all over again.

It might be more practical to use an end of data delimiter like in the below code. This code reads and collects characters in the serial input buffer until it encounters a period. then it prints back the captured characters.

//zoomkat 3-5-12 simple delimited '.' string  
//from serial port input (via serial monitor)
//and print result out serial port
//test using serial monitor

String readString;

void setup() {
  Serial.begin(9600);
  Serial.println("serial delimit test 1.0"); // so I can keep track of what is loaded
}

void loop() {

  //expect a string like wer. qwe rty. 123 456. hyre kjhg.
  //or like hello world. who are you?. bye.
  
  if (Serial.available())  {
    char c = Serial.read();  //gets one byte from serial buffer
    if (c == '.') {
      //do stuff
      Serial.println(readString); //prints string to serial port out
      readString=""; //clears variable for new input      
     }  
    else {     
      readString += c; //makes the string readString
    }
  }
}

He said he did not want to start unless it begings with a : your example captures all characters.

TexasStingray:
He said he did not want to start unless it begings with a : your example captures all characters.

I'll just stand back and watch. :sunglasses: