NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » Help with Comunication
| 
  July 24, 2009  by pedroh96  | 
Hey guys, I've been writing a code to do the following: when I type a message in the terminal, the message is displayed in my LCD. Please, check my code 
If there's a simplest way to do it, please tell me (or tell me how to do it fixing that code). Thanks, pH  | 
|---|---|
| 
  July 24, 2009  by wayward  | 
Hi pedroh96, here's a simple code snippet that should work. It prints everything up until and including the terminating newline character, then exits. Cheers!  | 
| 
  July 24, 2009  by Fahr  | 
If you want to fix your own code, change; tc = message; into message = tc; Right now you're sending an unitialized char to the screen.  | 
| 
  July 24, 2009  by pedroh96  | 
Hey! Actually, I don't want to write a single character, but some words. How can I change my code to do this? Thanks, pH  | 
| 
  July 24, 2009  by pedroh96  | 
Please help, guys. I'd like to know how to show more then just a character in the screen. Thanks, pH  | 
| 
  July 24, 2009  by wayward  | 
This code 
indeed does print a single character, but it repeats that action until a newline ('\n') is encountered. End result is that your input line is sent to the LCD without an intervening character array, which would only be an unnecessary bother/risk in this case. Try it! :)  | 
| 
  July 24, 2009  by wayward  | 
should read  | 
Please log in to post a reply.
| 
		 
Did you know that a microcontroller can measure an RC time constant? Learn more...
		 
	 |