Hi All,
I am trying to compile Marlin for my Megatronics V2.0 and have been successful until I try to enable an LCD. All I want at the moment is a 16x2 display to give basic information (as I have a 16x2 display handy). I am struggling as when I enable the ULTRA_LCD define I get the following compilation error:
in the lcd_init():
Anyone have an idea?
I am trying to compile Marlin for my Megatronics V2.0 and have been successful until I try to enable an LCD. All I want at the moment is a 16x2 display to give basic information (as I have a 16x2 display handy). I am struggling as when I enable the ULTRA_LCD define I get the following compilation error:
ultralcd.cpp: In function 'void lcd_init()': ultralcd.cpp:829: error: 'SHIFT_CLK' was not declared in this scope ultralcd.cpp:830: error: 'SHIFT_LD' was not declared in this scope ultralcd.cpp:831: error: 'SHIFT_EN' was not declared in this scope ultralcd.cpp:832: error: 'SHIFT_OUT' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_RPORT' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_WPORT' was not declared in this scope ultralcd.cpp:833: error: 'DIOSHIFT_OUT_PIN' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_RPORT' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_PIN' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_PIN' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_PIN' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_WPORT' was not declared in this scope ultralcd.cpp:834: error: 'DIOSHIFT_LD_PIN' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_RPORT' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_PIN' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_PIN' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_PIN' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_WPORT' was not declared in this scope ultralcd.cpp:835: error: 'DIOSHIFT_EN_PIN' was not declared in this scope
in the lcd_init():
... WRITE(SHIFT_LD,HIGH); #endif #else pinMode(SHIFT_CLK,OUTPUT); <-- This is where the error appears pinMode(SHIFT_LD,OUTPUT); pinMode(SHIFT_EN,OUTPUT); pinMode(SHIFT_OUT,INPUT); WRITE(SHIFT_OUT,HIGH); WRITE(SHIFT_LD,HIGH); WRITE(SHIFT_EN,LOW); #endif//!NEWPANEL
Anyone have an idea?