Go Down

Topic: Serial LCD (basic) problem (Read 638 times) previous topic - next topic

Twinax

Hello Everybody,

First of all I'm happy to be a new member of that forum.

I've a very basic problem with an LCD Serial device.

I would like to use an old AXE033 device (serial 16x2 LCD), see doc join)

All scketchs doesn't work, I only get some strange characters on screen.

Here one of my scketch


void setup() {               

Serial3.begin(2400,SERIAL_8N1);
}
void loop() {
   
Serial3.print(254);    Serial3.print(128); //LCD position

/Serial3.print(" Hello ");     // show "Hello"
 
  delay(200);
 
 
}

Do you have any idea?

Thanks for your help.

floresta

Quote
Do you have any idea?

Yes.  Move all of your code into setup() and leave loop() empty  (nothing between the { }  braces).

Don

Twinax


Yes.  Move all of your code into setup() and leave loop() empty  (nothing between the { }  braces).

Don
[/quote]

Hi thank you, same result, only strange characters.

kind regards;

floresta

It looks like you are using the PICAXE 'Test program' on page 8 of the manual in your link as the basis for your program.  Why did you leave out the first step?
init:pause 500 ' wait for display to initialise
main:serout 7,N2400,(254,128) ' move to start of first line
serout 7,N2400,("Hello!123") ' output text
end


Don

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy