GLCD characters set at 0,1 but shifted right 11 spaces on each row?

I am using a glcd 12864-6 and the openGLCD library. When I display examples from the library all the characters are shifted right about 11 spaces so the text starts toward the center of the display in stead of the left side. The text however is all the correct info. I have my code below for the “hello World” openGLCD sketch. Any help would be greatly appreciated.


  • openGLCD Library - Hello World
  • This sketch prints “Hello World!” to the LCD
  • and shows the time in seconds since Arduino board was reset.
  • 2013-06-15 bperrybap - updates for openGLCD
  • 2011-09-14 Bill Perry - original creation

// include the library header
// no font headers have to be included
#include <openGLCD.h>

void setup()
// Initialize the GLCD

// Select the font for the default text area

// GLCD.print(F(“hello, world!”)); // keep string in flash on AVR boards with IDE 1.x
GLCD.Puts(F(“hello, world!”)); // Puts() supports F() with any version of IDE

// print() below uses RAM on AVR boards but works
// on any version of IDE with any processor
// note: Same is true for Puts()
//GLCD.print(“hello, world!”);

void loop()
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
GLCD.CursorTo(0, 1);

// print the number of seconds since reset:

Did you run the diagnostic sketch? Did you look at the included html documentation?
The documentation is quite extensive.
There is a trouble shooting section in the documentation which explains how to fix that problem, which is caused
by swapped or incorrectly up chip selects.

--- bill

Thanks very much Bill, I will read through it tomorrow. Big help!!! thanks again!

The bitbucket page has more information that includes how to locate documentation in the library directory.
Be sure you downloaded and installed the version of the library that includes the documentation.
The typical issue is the chip select lines are swapped so swapping that fixes the issue.
But do have a look at the html documentation.
--- bill