Pages: [1]   Go Down
Author Topic: Serial LCD (basic) problem  (Read 505 times)
0 Members and 1 Guest are viewing this topic.
Paris
Offline Offline
Newbie
*
Karma: 0
Posts: 2
I learn something everyday
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

* AXE033.pdf (211.92 KB - downloaded 14 times.)
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 4394
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do you have any idea?
Yes.  Move all of your code into setup() and leave loop() empty  (nothing between the { }  braces).

Don
Logged

Paris
Offline Offline
Newbie
*
Karma: 0
Posts: 2
I learn something everyday
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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;
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 4394
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: