Welcome! Log In Create A New Profile

Advanced

error: 'DOGLCD_CS' was not declared in this scope; did you mean 'DOGLCD_SCK'?

Posted by colcolcheese 
//
// MKS MINI12864 with graphic controller and SD support
// [reprap.org]
//
//#define MKS_MINI_12864
==>no problem


#define MKS_MINI_12864

Compiling .pio\build\STM32F407ZE_btt\src\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp.o
Compiling .pio\build\STM32F407ZE_btt\src\src\lcd\extui\ui_api.cpp.o
Compiling .pio\build\STM32F407ZE_btt\src\src\lcd\fontutils.cpp.o
Compiling .pio\build\STM32F407ZE_btt\src\src\lcd\lcdprint.cpp.o
In file included from Marlin\src\lcd\dogm\marlinui_DOGM.cpp:42:
Marlin\src\lcd\dogm\marlinui_DOGM.cpp: In static member function 'static void MarlinUI::init_lcd()':
Marlin\src\lcd\dogm\marlinui_DOGM.h:231:23: error: 'DOGLCD_CS' was not declared in this scope; did you mean 'DOGLCD_SCK'?
231 | #define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // HW-SPI
| ^~~~~~~~~
Marlin\src\lcd\dogm\marlinui_DOGM.cpp:267:14: note: in expansion of macro 'U8G_PARAM'
267 | u8g.init(U8G_PARAM);
| ^~~~~~~~~
Marlin\src\lcd\dogm\marlinui_DOGM.h:231:34: error: 'DOGLCD_A0' was not declared in this scope; did you mean 'DOGLCD'?
231 | #define U8G_PARAM DOGLCD_CS, DOGLCD_A0 // HW-SPI
| ^~~~~~~~~
Compiling .pio\build\STM32F407ZE_btt\src\src\lcd\marlinui.cpp.o
Marlin\src\lcd\dogm\marlinui_DOGM.cpp:267:14: note: in expansion of macro 'U8G_PARAM'
267 | u8g.init(U8G_PARAM);
| ^~~~~~~~~
*** [.pio\build\STM32F407ZE_btt\src\src\lcd\dogm\marlinui_DOGM.cpp.o] Error 1
======================================================================== [FAILED] Took 31.11 seconds ========================================================================

Environment Status Duration
--------------- -------- ------------
STM32F407ZE_btt FAILED 00:00:31.113
=================================================================== 1 failed, 0 succeeded in 00:00:31.113 ===================================================================

* The terminal process "C:\Users\mintb\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.


How do I resolve this error?
Attachments:
open | download - Marlin.zip (90.3 KB)
open | download - message.txt (42.1 KB)
Re: error: 'DOGLCD_CS' was not declared in this scope; did you mean 'DOGLCD_SCK'?
May 07, 2023 05:51AM
Are you sure you have a MKS_MINI_12864?, these are rather old displays

They look like



Are you sure its not a v3? This is a much more recent and common display and looks similar but is quite different in how it works.

This is MKS_MINI_12864_V3


If by chance you really do have the v1 display

this pins files should fix it
pins_BTT_OCTOPUS_V1_common.h

Edited 2 time(s). Last edit at 05/07/2023 06:11AM by Dust.
Thanks to you, the compilation went well.
Note that V2 has adjustable backlight.


Re: error: 'DOGLCD_CS' was not declared in this scope; did you mean 'DOGLCD_SCK'?
May 08, 2023 08:14AM
Oh its a V2, I recently was looking into those trying to find the difference from the v1.... now I know.
I'm glad I could be of service.

V2 has the EXP sockets oriented the other way around.
I use it with the socket removed.


Sorry, only registered users may post in this forum.

Click here to login