-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] DWIN_LCD_PROUI won't draw screen #27141
Comments
Did you actually update the firmware in the display? (this is separate from the controller firmware) |
I'm going to mark this as confirmed since someone else on Discord is having the same issue with ProUI, even with the updated/matched DWIN set. MarlinUI works fine. |
Yes, my DWIN Display is up to date. |
I address this issue in this #26917
MarlinCore.cpp #if HAS_DWIN_E3V2
#include "lcd/e3v2/common/encoder.h"
#if ENABLED(DWIN_CREALITY_LCD)
#include "lcd/e3v2/creality/dwin.h"
#elif ENABLED(DWIN_CREALITY_LCD_JYERSUI)
#include "lcd/e3v2/jyersui/dwin.h"
+ #elif ENABLED(DWIN_LCD_PROUI)
+ #include "lcd/extui/ui_api.h"
#endif
#endif
@@ -1599,6 +1601,8 @@ void setup() {
#if ENABLED(DWIN_CREALITY_LCD)
SETUP_RUN(dwinInitScreen());
+ #elif ENABLED(DWIN_LCD_PROUI)
+ SETUP_RUN(ExtUI::onStartup());
#endif |
@classicrocker883 I've merged your PR to my up to dated fork. It was automerged but some errors ar occurred during build. line 1235 @ /Marlin/src/lcd/e3v2/proui/dwin.cpp
The scope MPCTEMP_START should be changed to MPC_STARTED. (this one is the only one which hasn't changed) After I've changed the name of scope, The compiler shows this error: |
youre right thanks @ line 220, in that file proui_extui.cpp, change the following: void onMPCTuning(const mpcresult_t rst) {
// Called for temperature MPC tuning result
switch (rst) {
- case MPC_STARTED: dwinMPCTuning(MPC_STARTED); break;
- case MPC_TEMP_ERROR: dwinMPCTuning(MPC_TEMP_ERROR); break;
- case MPC_INTERRUPTED: dwinMPCTuning(MPC_INTERRUPTED); break;
+ case MPC_STARTED: dwinMPCTuning(tempcontrol_t(MPC_STARTED)); break;
+ case MPC_TEMP_ERROR: dwinMPCTuning(tempcontrol_t(MPC_TEMP_ERROR)); break;
+ case MPC_INTERRUPTED: dwinMPCTuning(tempcontrol_t(MPC_INTERRUPTED)); break;
case MPC_DONE: dwinMPCTuning(AUTOTUNE_DONE); break;
}
} just like for PID tuning function, you will see basically |
when is it estimated the fix for this will appear in the nightly build? |
There is no estimated time at the moment. I'd recommend using |
@lonelyhero77 did that fix work for you, so everything works as it should? |
@classicrocker883 Sorry. I haven't been able to test in real for a while. I tested it now and it seems working OK. It now draws screen. but the firmware is unable to load dwin icons. Maybe it's related to the code that are about allocating dwin ico number.... I'm not sure yet. |
you probably have a different .ico file installed than defined. in Marlin\src\lcd\e3v2\common\dwin_set.h look for change this to: |
This worked for me. Thanks for the contribution! I hope the PR gets merged soon. I've tested it on MKS Robin Nano V3.1 and Creality V4.2.2 Board. |
@classicrocker883 I've found that the screen still won't draw when I turn on AUTO_BED_LEVELING_UBL function. I've no idea what's related to the screen drawing but if I turn off UBL function the screen works great. Do you have any clue about this happen? |
IIRC, I think I experienced the same issue. It can be related to settings.cpp, I mean that is my hunch. the main issue basically stems when ProUI was lumped into but when the screen won't show up because of the bed leveling it's probably something to do with settings.cpp |
I see this issue is still open. is it actively being worked on, I have some users requesting firmware with ProUI |
then I've got some good news for you! otherwise if you want a more... vanilla plain version I've been working on a pull request that so far fixes the issues, you can find it here or just go to the repo address, copy the zip file. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
DWIN_LCD_PROUI is not working
Bug Timeline
No response
Expected behavior
The DWIN LCD should be working
Actual behavior
The DWIN LCD won't draw anything except showing black screen
Steps to Reproduce
Version of Marlin Firmware
head of bugfix-2.1.x branch
Printer model
Ender-3 V2
Electronics
BOARD_CREALITY_V422
LCD/Controller
Stock Ender-3 V2 DWIN LCD
Other add-ons
BLTouch
Bed Leveling
UBL Bilinear mesh
Your Slicer
Prusa Slicer
Host Software
SD Card (headless)
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
I use OrcaSlicer(forked from PrusaSlicer) for slicing
configuration.zip
The text was updated successfully, but these errors were encountered: