Quantcast
Channel: Reprap Forum
Viewing all articles
Browse latest Browse all 39321

Marlin compile error when enabling ULTRA_LCD define with Megatronics 2.0 (no replies)

$
0
0
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:

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?

Viewing all articles
Browse latest Browse all 39321

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>