Welcome! Log In Create A New Profile

Advanced

Full Graphics display on Megatronics v3.1

Posted by Outbound 
Full Graphics display on Megatronics v3.1
February 09, 2017 08:27PM
Greetings,

I have a new Megatronics v3.1 with a Graphics Display LCD with controller and SD card reader.

The board is working fine as is the LCD as I've put both through the their respective test firmwares and have the board connected to the printer and tested the functionality via USB connection.

I'm having some trouble correctly configuring the firmware for the full graphics display though. When I uncomment the «#define doglcd» line for the full graphics display I get the following error on compilation:

/var/folders/8l/bpkfk5cx5bvc3xz824fd_kxm0000gp/T/build923664638031045729.tmp/ultralcd.cpp:75:0:
/var/folders/8l/bpkfk5cx5bvc3xz824fd_kxm0000gp/T/build923664638031045729.tmp/dogm_lcd_implementation.h:159:22: error: 'DOGLCD_CS' was not declared in this scope
   U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);  // HW-SPI Com: CS, A0
                      ^
/var/folders/8l/bpkfk5cx5bvc3xz824fd_kxm0000gp/T/build923664638031045729.tmp/dogm_lcd_implementation.h:159:33: error: 'DOGLCD_A0' was not declared in this scope
   U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);  // HW-SPI Com: CS, A0
                                 ^
Error compiling.

I have the latest u8glib library version installed (1.9.1). I even tried switching to u8g2 but that just gave me an error saying it was still looking for u8glib.

Any ideas?

Thanks in advance.
Re: Full Graphics display on Megatronics v3.1
February 09, 2017 08:48PM
What firmware are you using? ie something they provided, or latest from the internet

To me it looks like the board type you selected simply doesn't have the lcd pins defined is the relevant pins.h

eg from ramps.h
#define DOGLCD_A0 44
#define DOGLCD_CS 45

But in pins_MEGATRONICS_3.h these are not defined.

no idea on what pin out you need though.
Re: Full Graphics display on Megatronics v3.1
February 10, 2017 06:30AM
Yeah, I had to use a more up to date firmware (the one on the page for the LCD itself), the one I was using was released before this LCD controller.

The issue seems to be resolved now as far as the LCD is concerned.

Thanks and sorry for the bother.
Sorry, only registered users may post in this forum.

Click here to login