LCD updates
This commit is contained in:
@@ -36,27 +36,27 @@
|
||||
#ifndef ULTRALCD_IMPL_DOGM_H
|
||||
#define ULTRALCD_IMPL_DOGM_H
|
||||
|
||||
#include "MarlinConfig.h"
|
||||
#include "../inc/MarlinConfig.h"
|
||||
|
||||
/**
|
||||
* Implementation of the LCD display routines for a DOGM128 graphic display.
|
||||
* These are common LCD 128x64 pixel graphic displays.
|
||||
*/
|
||||
#include "ultralcd.h"
|
||||
#include "ultralcd_st7920_u8glib_rrd.h"
|
||||
#include "ultralcd_st7565_u8glib_VIKI.h"
|
||||
#include "dogm_bitmaps.h"
|
||||
#include "utility.h"
|
||||
#include "duration_t.h"
|
||||
|
||||
#if ENABLED(U8GLIB_ST7565_64128N)
|
||||
#include "dogm/ultralcd_st7565_u8glib_VIKI.h"
|
||||
#elif ENABLED(U8GLIB_ST7920)
|
||||
#include "dogm/ultralcd_st7920_u8glib_rrd.h"
|
||||
#endif
|
||||
|
||||
#include "dogm/dogm_bitmaps.h"
|
||||
#include "../libs/duration_t.h"
|
||||
|
||||
#include <U8glib.h>
|
||||
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
#include "ubl.h"
|
||||
#include "../feature/ubl/ubl.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
||||
#include "_Bootscreen.h"
|
||||
#include "../config/_Bootscreen.h"
|
||||
#endif
|
||||
|
||||
// Only Western languages support big / small fonts
|
||||
@@ -66,57 +66,57 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(USE_SMALL_INFOFONT)
|
||||
#include "dogm_font_data_6x9_marlin.h"
|
||||
#include "dogm/dogm_font_data_6x9_marlin.h"
|
||||
#define FONT_STATUSMENU_NAME u8g_font_6x9
|
||||
#else
|
||||
#define FONT_STATUSMENU_NAME FONT_MENU_NAME
|
||||
#endif
|
||||
|
||||
#include "dogm_font_data_Marlin_symbols.h" // The Marlin special symbols
|
||||
#include "dogm/dogm_font_data_Marlin_symbols.h" // The Marlin special symbols
|
||||
#define FONT_SPECIAL_NAME Marlin_symbols
|
||||
|
||||
#if DISABLED(SIMULATE_ROMFONT)
|
||||
#if ENABLED(DISPLAY_CHARSET_ISO10646_1)
|
||||
#include "dogm_font_data_ISO10646_1.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_1.h"
|
||||
#define FONT_MENU_NAME ISO10646_1_5x7
|
||||
#elif ENABLED(DISPLAY_CHARSET_ISO10646_PL)
|
||||
#include "dogm_font_data_ISO10646_1_PL.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_1_PL.h"
|
||||
#define FONT_MENU_NAME ISO10646_1_PL_5x7
|
||||
#elif ENABLED(DISPLAY_CHARSET_ISO10646_5)
|
||||
#include "dogm_font_data_ISO10646_5_Cyrillic.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_5_Cyrillic.h"
|
||||
#define FONT_MENU_NAME ISO10646_5_Cyrillic_5x7
|
||||
#elif ENABLED(DISPLAY_CHARSET_ISO10646_KANA)
|
||||
#include "dogm_font_data_ISO10646_Kana.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_Kana.h"
|
||||
#define FONT_MENU_NAME ISO10646_Kana_5x7
|
||||
#elif ENABLED(DISPLAY_CHARSET_ISO10646_GREEK)
|
||||
#include "dogm_font_data_ISO10646_Greek.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_Greek.h"
|
||||
#define FONT_MENU_NAME ISO10646_Greek_5x7
|
||||
#elif ENABLED(DISPLAY_CHARSET_ISO10646_CN)
|
||||
#include "dogm_font_data_ISO10646_CN.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_CN.h"
|
||||
#define FONT_MENU_NAME ISO10646_CN
|
||||
#define TALL_FONT_CORRECTION 1
|
||||
#elif ENABLED(DISPLAY_CHARSET_ISO10646_TR)
|
||||
#include "dogm_font_data_ISO10646_1_tr.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_1_tr.h"
|
||||
#define FONT_MENU_NAME ISO10646_TR
|
||||
#elif ENABLED(DISPLAY_CHARSET_ISO10646_CZ)
|
||||
#include "dogm_font_data_ISO10646_CZ.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_CZ.h"
|
||||
#define FONT_MENU_NAME ISO10646_CZ
|
||||
#else // fall-back
|
||||
#include "dogm_font_data_ISO10646_1.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_1.h"
|
||||
#define FONT_MENU_NAME ISO10646_1_5x7
|
||||
#endif
|
||||
#else // SIMULATE_ROMFONT
|
||||
#if DISPLAY_CHARSET_HD44780 == JAPANESE
|
||||
#include "dogm_font_data_HD44780_J.h"
|
||||
#include "dogm/dogm_font_data_HD44780_J.h"
|
||||
#define FONT_MENU_NAME HD44780_J_5x7
|
||||
#elif DISPLAY_CHARSET_HD44780 == WESTERN
|
||||
#include "dogm_font_data_HD44780_W.h"
|
||||
#include "dogm/dogm_font_data_HD44780_W.h"
|
||||
#define FONT_MENU_NAME HD44780_W_5x7
|
||||
#elif DISPLAY_CHARSET_HD44780 == CYRILLIC
|
||||
#include "dogm_font_data_HD44780_C.h"
|
||||
#include "dogm/dogm_font_data_HD44780_C.h"
|
||||
#define FONT_MENU_NAME HD44780_C_5x7
|
||||
#else // fall-back
|
||||
#include "dogm_font_data_ISO10646_1.h"
|
||||
#include "dogm/dogm_font_data_ISO10646_1.h"
|
||||
#define FONT_MENU_NAME ISO10646_1_5x7
|
||||
#endif
|
||||
#endif // SIMULATE_ROMFONT
|
||||
@@ -174,11 +174,10 @@
|
||||
U8GLIB_LM6059_2X u8g(DOGLCD_CS, DOGLCD_A0); // 4 stripes
|
||||
#elif ENABLED(U8GLIB_ST7565_64128N)
|
||||
// The MaKrPanel, Mini Viki, and Viki 2.0, ST7565 controller
|
||||
// U8GLIB_ST7565_64128n_2x_VIKI u8g(0); // using SW-SPI DOGLCD_MOSI != -1 && DOGLCD_SCK
|
||||
U8GLIB_ST7565_64128n_2x_VIKI u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0); // using SW-SPI
|
||||
//U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0); // 8 stripes
|
||||
//U8GLIB_NHD_C12864_2X u8g(DOGLCD_CS, DOGLCD_A0); // 4 stripes HWSPI
|
||||
|
||||
//U8GLIB_ST7565_64128n_2x_VIKI u8g(0); // using SW-SPI DOGLCD_MOSI != -1 && DOGLCD_SCK
|
||||
U8GLIB_ST7565_64128n_2x_VIKI u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0); // using SW-SPI
|
||||
//U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0); // 8 stripes
|
||||
//U8GLIB_NHD_C12864_2X u8g(DOGLCD_CS, DOGLCD_A0); // 4 stripes HWSPI
|
||||
#elif ENABLED(U8GLIB_SSD1306)
|
||||
// Generic support for SSD1306 OLED I2C LCDs
|
||||
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST); // 8 stripes
|
||||
|
||||
Reference in New Issue
Block a user