MKS 12864OLED

From RepRap
Jump to: navigation, search

Template:MKS 12864OLED


Crystal Clear action run.png
MKS 12864OLED

Release status: Working

MKS-12864 OLED1.jpg
Description
MKS-12864OLED mini smart controller
License
Author
Contributors
Based-on
Categories
CAD Models
none
External Link
none


Overview

MKS-12864OLED adopts OLED display and created by Makebase.

It is suitable for the printer which carries with small display , installed size and good display effect .

Features

1. Default 1.3 inch OLED display;

2. If you have other sizes display, you can ask not to weld 1.3 inch OLED either , but the interface will be retained for users.

3. The interface of MKS-12864OLED is as the same as 2004/12864LCD.

Notice

1.The Marlin must be modified before use, the modification method refers to the below instructions.

2.Repetier may not work unless you self-develop one.

3.We will provide an example of firmware for testing, but does not provide technical support.

4.Each piece will be tested.


MKS 12864OLED Photo

MKS-12864 OLED1.jpg

Size

12864 OLED2.png

Connection

12864 OLED3.jpg

EXP1 connects to EXP1 of mainboard

EXP2 connects to EXP2 of mainboard

You must follow the connection sequence, especially 3v3 and GND, wrong connection will burn OLED.

GND: connects to GND of OLED power ground

3V3: VCC of OLED power anode

CLK: CLK of OLED clock

MOSI: MOSI of OLED data

RES: RES of OLED reset

DC: DC of OLED data order option

CS: CS of OLED chip selection

Instruction on Usage

1.If use Arduino IDE, We suggest updated version 1.5.4 . And unzip U8glib.rar into libraries directory. As follow:

MKS-12864 OLED4.png

2.Modify file Configuration.h, add the following sections, refers to the example firmware.
/*---------------MKS OLED patch_1-----------------------*/
// MKS  OLED 1.3''  128x64 FULL GRAPHICS CONTROLLER
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder

#define MKS_OLED13_128x64_FULL_GRAPHICS_CONTROLLER

#if defined (MKS_OLED13_128x64_FULL_GRAPHICS_CONTROLLER)
	#define DOGLCD
	#define U8GLIB_SH1106
	#define REPRAP_DISCOUNT_SMART_CONTROLLER
	#define NEWPANEL
#endif

/*---------------MKS OLED patch_1-----------------------*/

3.Modify file dogm_lcd_implementation.h, add the following sections , refers to the example firmware. 

/*---------------MKS OLED patch_2-----------------------*/
#elif defined(U8GLIB_SH1106) 
U8GLIB_SH1106_128X64 u8g(23, 17, 16, 25);	// SW SPI Com: SCK = 23, MOSI = 17, CS = 16, A0 = 25
/*---------------MKS OLED patch_2-----------------------*/

4.Modify file Marlin_main.cpp, add the following sections ,refers to the example firmware. 
/*---------------MKS OLED patch_3-----------------------*/
#if defined (MKS_OLED13_128x64_FULL_GRAPHICS_CONTROLLER)
  pinMode(LCD_PINS_DC, OUTPUT);		  
  pinMode(LCD_PINS_RST, OUTPUT);		
  digitalWrite(LCD_PINS_RST  , LOW);
  delay(1000);
  digitalWrite(LCD_PINS_RST  , HIGH);
#endif  
/*---------------MKS OLED patch_3-----------------------*/  

5.Modify file pins.h, add the following sections ,refers to the example firmware. 
/*---------------MKS OLED patch_4-----------------------*/
#if defined (MKS_OLED13_128x64_FULL_GRAPHICS_CONTROLLER)

#ifdef LCD_PINS_D5
#undef LCD_PINS_D5
#define LCD_PINS_D5 -1
#endif
#ifdef LCD_PINS_D6
#undef LCD_PINS_D6
#define LCD_PINS_D6 -1
#endif
#define LCD_PINS_RST  27
#define LCD_PINS_DC   25
#endif

/*---------------MKS OLED patch_4-----------------------*/

Data Download

More data resource: