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

[BUG] Dont compile firmware with MKS-MINI12864-V3 and NEOPIXEL_LED #23808

Closed
wirebeard opened this issue Feb 26, 2022 · 9 comments
Closed

[BUG] Dont compile firmware with MKS-MINI12864-V3 and NEOPIXEL_LED #23808

wirebeard opened this issue Feb 26, 2022 · 9 comments

Comments

@wirebeard
Copy link

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

Cant compile Marlin firmware for MKS TinyBee motherboard and graphical LCD MKS Mini 12864 v3 with Neopixel RGB backlight

Compiling .pio/build/mks_tinybee/src/src/HAL/ESP32/Tone.cpp.o
In file included from Marlin/src/HAL/ESP32/../../inc/MarlinConfig.h:50:0,
                 from Marlin/src/HAL/ESP32/HAL.cpp:24:
Marlin/src/HAL/ESP32/../../inc/SanityCheck.h:2596:6: error: #error "NEOPIXEL_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."
     #error "NEOPIXEL_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."

Bug Timeline

After added in release 2.0.9.3 MKS TinyBee

Expected behavior

Compile firmware without errors

Actual behavior

Compile error

Steps to Reproduce

  1. Download Marlin 2.0.9.3 (current)
  2. Edit Configuration.h to uncomment #define MKS_MINI_12864_V3; #define NEOPIXEL_LED
  3. Attempt to compile in platformio

Version of Marlin Firmware

2.0.9.3

Printer model

No response

Electronics

Motherboard MKS TinyBee

Add-ons

LCD MKS Mini 12864 V3

Bed Leveling

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

Configuration.zip
error.txt

@wirebeard wirebeard changed the title [BUG] (bug summary) Dont compile firmware with MKS-MINI12864-V3 and NEOPIXEL_LED [BUG] Dont compile firmware with MKS-MINI12864-V3 and NEOPIXEL_LED Feb 26, 2022
@ellensp
Copy link
Contributor

ellensp commented Feb 26, 2022

Please note:
This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.

You have #define MKS_MINI_12864 when you need #define MKS_MINI_12864_V3

This is a User configuration error.

@ellensp
Copy link
Contributor

ellensp commented Feb 26, 2022

That is incorrect.
I get other error but not the same error.

@wirebeard
Copy link
Author

Same error

#error "NEOPIXEL_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."

@wirebeard
Copy link
Author

Sorry, another error

#error "Your FYSETC Mini Panel requires NEOPIXEL_TYPE to be NEO_RGB."

with

#define NEOPIXEL_TYPE NEO_GRB // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)

@ellensp
Copy link
Contributor

ellensp commented Feb 26, 2022

Because your dyslexic?
NEO_RGB != NEO_GRB

@wirebeard
Copy link
Author

How do you know?

After change to NEO_RGB:

#error "NEOPIXEL_LED requires NEOPIXEL_PIN and NEOPIXEL_PIXELS."

@ellensp
Copy link
Contributor

ellensp commented Feb 26, 2022

3rd party library ESP3DLib does not work with anything newer than marlin 2.0.9.2

It contains in espcom.cpp

#if HAS_GRAPHICAL_LCD
#include <U8glib.h>
#endif

But the keyword HAS_GRAPHICAL_LCD no longer exists in Marlin and U8glib.h should be U8glib-HAL.h

I got it to compile under Marlin 2.0.x with the following changes

//#define MKS_MINI_12864
#define MKS_MINI_12864_V3

Applying these changes https://github.com/MarlinFirmware/Marlin/pull/23562/files

Edit add Marlin/src/HAL/ESP32/u8g_esp32_spi.cpp add #include "HAL.h"

and editing .pio/libdeps/mks_tinybee/ESP3DLib/src/espcom.cpp
commented out the above if block and updating the include so it becomes

//#if HAS_GRAPHICAL_LCD
#include <U8glib-HAL.h>
//#endif

I cannot test the resulting firmware, I don't have the controller.

I could not get it to compile under bugfix at all

@ellensp
Copy link
Contributor

ellensp commented Feb 26, 2022

Regarding Bugfix I have just had this patch added to marlin bugfix #23810
and this along with luc-github/ESP3DLib#40 once this is merged it will then work on bugfix.
I have not tried all your options yet. just the correct lcd MKS_MINI_12864_V3 and WEBSUPPORT with ESP3D_WIFISUPPORT

@github-actions
Copy link

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 Jun 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants