Skip to content

iworld4us/nextion-2.4

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
December 11, 2017 21:31
July 25, 2018 21:36
February 9, 2018 15:20
February 22, 2018 16:32
February 22, 2018 16:32
December 31, 2020 19:22
December 31, 2020 19:22
December 31, 2020 19:22

Nextion 2.4", 2.8", 3.2", 4.3" Firmwares

Firmwares for Nextion 2.4", 2.8", 3.2", 4.3" displays to use with MK4duo (3D Printer Arduino firmware).

Video demo: youtu.be/Kq1StPYwWfQ.

If 3D GFX Preview is not working

Change these lines in /src/lcd/nextion/Nextion_lcd.cpp:

if (strstr(buffer, "4827")) { // Model 4.3" Normal or Enhanced
        SERIAL_MSG(" 4.3");
        #if ENABLED(NEXTION_GFX)
          gfx.set_position(1, 24, 250, 155);
        #endif
}
else if (strstr(buffer, "8048")) { // Model 7" Normal or Enhanced
        SERIAL_MSG(" 7");
        #if ENABLED(NEXTION_GFX)
          gfx.set_position(274, 213, 250, 155);
        #endif
}

to:

if (strstr(buffer, "3224")) { // Model 2.4" or 2.8" Normal or Enhanced
	SERIAL_MSG(" 2.4");
	#if ENABLED(NEXTION_GFX)
	  gfx.set_position(1, 24, 250, 155);
	#endif
}
else if (strstr(buffer, "4024")) {  // Model 3.2" Normal or Enhanced
	SERIAL_MSG(" 3.2");
	#if ENABLED(NEXTION_GFX)
	  gfx.set_position(1, 24, 250, 155);
	#endif
}
else if (strstr(buffer, "4827")) {  // Model 4.3" Normal or Enhanced
	SERIAL_MSG(" 4.3");
	#if ENABLED(NEXTION_GFX)
	gfx.set_position(1, 24, 250, 155);
	#endif
}
else if (strstr(buffer, "8048")) {  // Model 7" Normal or Enhanced
	SERIAL_MSG(" 7");
	#if ENABLED(NEXTION_GFX)
	  gfx.set_position(274, 213, 250, 155);
	#endif
}