I have a RAMPS 1.4 full graphic display (128x64) with a built in SD card reader, jog wheel and buzzer left over from a 3D printer which I no longer own and was hoping to put it to use with another project.
Although I haven't yet done so I imagine the buzzer and jog wheel will be quite simple to get working.
At the moment I am just trying to get the 128x64 LCD to work with an Arduino (Uno or Mega2560) but to little joy, all I've managed to get out of it is the back-light which comes on as soon as power is added to the Arduino.
I've been working with two different pinouts with no luck:
Did you ever get some accurate information on this? I plan on using this type of display on a robot I am building and was hoping you could shed some light!
I got it to work. The important part was to guess the pinout on the LCD, and i managed to guess correctly.
My display is dim using USB, i think backlight will improve if i use VIN..
SCK = 2
MOSI = 3
CS = 4
ENCODER CS [~] [~] 5V
BUZZER MOSI SCK [~] GND
#include <U8glib.h>
U8GLIB_ST7920_128X64_1X u8g(2, 3, 4);
void setup() {
u8g.setFont(u8g_font_unifont);
u8g.setColorIndex(1); // Instructs the display to draw with a pixel on.
}
void loop() {
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );
delay(1000);
}
void draw(){
u8g.drawStr( 0, 20, "Hello World");
}