Pages: [1]   Go Down
Author Topic: Graphic LCD Double text problem  (Read 729 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, thanks for this great forum !!!

 i'm running a 128x64 Graphic LCD with a Arduino MEGA 2560, and i try to make lines of text display on the screen,

Everything works fine with the demo Program, but with my program everything is displayed 2 times

this is a part of my program.

thanks

Code:

#include <glcd.h>
#include "fonts/Arial14.h"         // proportional font
#include "fonts/SystemFont5x7.h"   // system font

void setup()
{
  GLCD.Init();   // initialise the library, non inverted writes pixels onto a clear screen
}

void loop(){
  GLCD.ClearScreen();
  GLCD.SelectFont(System5x7);
  GLCD.Puts("PROGRAMME");
  GLCD.CursorTo (0 , 1);
  GLCD.Puts ("HEAT V1.06");
  delay (2000);
}



* 20130203_002224[1].jpg (943.67 KB, 3264x2448 - viewed 28 times.)
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I dont have a solution for you, but I do have a reason

typically the ram in these things is split down the middle of the screen in two banks, seems that your code is sending the same data to both banks of ram, thus double vision
Logged


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

It looks like you may have both of your chip selects connected together.

Don
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, thanks for reply,

i am agree with you that both chips receiving the same info, but i am sure that CS1 and CS2 are not connected together and it works with the demo program !

Please, do you have other idea ?
Logged

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

Quote
... and it works with the demo program
What demo program?

Why is the code to display your (unchanging) message in loop() instead of in setup()?


Don
Logged

Dallas, TX USA
Offline Offline
Faraday Member
**
Karma: 63
Posts: 2649
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have seen this issue before, it is more than likely a wiring error.
Run the diag sketch that comes with the library and then look at the trouble shooting
guide in the included documentation for some tips on how to resolve it.

My guess is that the chip selects are mis wired or the connections used on them are not making proper contact.
Floating or mis connected chip selects can create the type of output you are seeing.

The diags will show chip numbers on the display which can help isolate the problem.
Run it and if you are still having issues. Post the text diag output and also describe
what you see when the diag sketch  runs.

--- bill
Logged

Pages: [1]   Go Up
Jump to: