Welcome! Log In Create A New Profile

Advanced

Ramps 1.4 - Reprapdiscount Graphic Controller - Arduino Mega - Helloworld

Posted by dominate 
Ramps 1.4 - Reprapdiscount Graphic Controller - Arduino Mega - Helloworld
February 15, 2015 06:46AM
Hello,

I am new at here. I want to integrate Ramps 1.4 with Reprapdiscount Graphic Controller and Arduino Mega. I want to write hello world. I found hello world example from u8glib library. But here i should uncomment constructor of u8glib. Which constructor i should use for reprapdiscount full graphic smart controller? I uncomment below line but doesnt work :/

//U8GLIB_ST7920_128X64_1X u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 17, 16); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, di=17,rw=16
Re: Ramps 1.4 - Reprapdiscount Graphic Controller - Arduino Mega - Helloworld
February 15, 2015 11:44AM
Either of the two below work for the Reprapdiscount Full Graphic Smart Controller on the RAMPS1.4/Mega

SCK = 23, MOSI = 17, CS = 16 (corresponding to the Mega's Pins).

Uncomment one the two lines from the sketch.

//U8GLIB_ST7920_128X64_1X u8g(23, 17, 16);	// SPI Com: SCK = en = 18, MOSI = rw = 16, CS = di = 17
//U8GLIB_ST7920_128X64_4X u8g(23, 17, 16);	// SPI Com: SCK = en = 18, MOSI = rw = 16, CS = di = 17
Re: Ramps 1.4 - Reprapdiscount Graphic Controller - Arduino Mega - Helloworld
February 20, 2015 06:39PM
I have got pin problem on my lcd so i have just tried this line and it is working now smiling smiley. Thank u very much NickE
Sorry, only registered users may post in this forum.

Click here to login