Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIKI2 / u8glib Compile Error #4164

Closed
thinkyhead opened this issue Jun 28, 2016 · 3 comments
Closed

VIKI2 / u8glib Compile Error #4164

thinkyhead opened this issue Jun 28, 2016 · 3 comments
Labels
C: Boards/Pins T: Question Questions, generally redirected to other groups.

Comments

@thinkyhead
Copy link
Member

With VIKI2 enabled and u8glib installed (using the Arduino IDE Library Manager) my client is seeing the following error:

Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from sketch\ultralcd.cpp:48:0:
dogm_lcd_implementation.h:152: error: 'DOGLCD_CS' was not declared in this scope
   U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0);
                         ^
dogm_lcd_implementation.h:152: error: 'DOGLCD_A0' was not declared in this scope
   U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0);
                                    ^
exit status 1
'DOGLCD_CS' was not declared in this scope

What is causing this?

@thinkyhead thinkyhead added C: Boards/Pins T: Question Questions, generally redirected to other groups. labels Jun 28, 2016
@Blue-Marlin
Copy link
Contributor

Blue-Marlin commented Jun 28, 2016

Post your configuration please. :-)
I suppose you try to compile for a RAMPS. For RAMPS these pins (as far as i know) never have been defined for VIKI2 - at least not in the splitted pins-file.

In the branch panucat provides (https://github.com/royco/Marlin/blob/Development/Marlin/pins.h)
if i read it correct

        #define DOGLCD_A0  44
        #define DOGLCD_CS  45

.In their documentation (https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/1015877726/original/Viki2_Wiring_Diagram.pdf?AWSAccessKeyId=AKIAJ2JSYZ7O3I4JO6DA&Expires=1467158775&Signature=1S4pvuVZyD%2BCEJbPyenMgmwk%2BBg%3D&response-content-type=application%2Fpdf) you cant find an example for RAMPS.

@thinkyhead
Copy link
Member Author

Ha, that explains it. They want to use an MKS_13 board, which is a RAMPS, with a VIKI2. I'm adding the pins now… but only in the MKS_13 file because some other RAMPS derivatives (like Azteeg X3) define them differently.

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: Boards/Pins T: Question Questions, generally redirected to other groups.
Projects
None yet
Development

No branches or pull requests

2 participants