Merge pull request #5303 from AnHardt/reduce-sripes
Not more then 4 stripes for u8g-devices
This commit is contained in:
commit
20b0889602
|
@ -140,36 +140,47 @@
|
||||||
|
|
||||||
// LCD selection
|
// LCD selection
|
||||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||||
U8GLIB_ST7920_128X64_4X u8g(LCD_PINS_RS);
|
U8GLIB_ST7920_128X64_4X u8g(LCD_PINS_RS); // 2 stripes
|
||||||
|
// U8GLIB_ST7920_128X64 u8g(LCD_PINS_RS); // 8 stripes
|
||||||
#elif ENABLED(U8GLIB_ST7920)
|
#elif ENABLED(U8GLIB_ST7920)
|
||||||
//U8GLIB_ST7920_128X64_RRD u8g(0,0,0);
|
//U8GLIB_ST7920_128X64_4X u8g(LCD_PINS_D4, LCD_PINS_ENABLE, LCD_PINS_RS); // Original u8glib device. 2 stripes
|
||||||
U8GLIB_ST7920_128X64_RRD u8g(0);
|
// No 4 stripe device available from u8glib.
|
||||||
|
//U8GLIB_ST7920_128X64 u8g(LCD_PINS_D4, LCD_PINS_ENABLE, LCD_PINS_RS); // Original u8glib device. 8 stripes
|
||||||
|
U8GLIB_ST7920_128X64_RRD u8g(0); // Number of stripes can be adjusted in ultralcd_st7920_u8glib_rrd.h with PAGE_HEIGHT
|
||||||
#elif ENABLED(CARTESIO_UI)
|
#elif ENABLED(CARTESIO_UI)
|
||||||
// The CartesioUI display
|
// The CartesioUI display
|
||||||
#if DOGLCD_MOSI != -1 && DOGLCD_SCK != -1
|
#if DOGLCD_MOSI != -1 && DOGLCD_SCK != -1
|
||||||
// using SW-SPI
|
// using SW-SPI
|
||||||
U8GLIB_DOGM128 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0);
|
//U8GLIB_DOGM128 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0); // 8 stripes
|
||||||
|
U8GLIB_DOGM128_2X u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0); // 4 stripes
|
||||||
#else
|
#else
|
||||||
U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);
|
//U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0); // 8 stripes
|
||||||
|
U8GLIB_DOGM128_2X u8g(DOGLCD_CS, DOGLCD_A0); // 4 stripes
|
||||||
#endif
|
#endif
|
||||||
#elif ENABLED(U8GLIB_LM6059_AF)
|
#elif ENABLED(U8GLIB_LM6059_AF)
|
||||||
// Based on the Adafruit ST7565 (http://www.adafruit.com/products/250)
|
// Based on the Adafruit ST7565 (http://www.adafruit.com/products/250)
|
||||||
U8GLIB_LM6059 u8g(DOGLCD_CS, DOGLCD_A0);
|
//U8GLIB_LM6059 u8g(DOGLCD_CS, DOGLCD_A0); // 8 stripes
|
||||||
|
U8GLIB_LM6059_2X u8g(DOGLCD_CS, DOGLCD_A0); // 4 stripes
|
||||||
#elif ENABLED(MAKRPANEL) || ENABLED(VIKI2) || ENABLED(miniVIKI)
|
#elif ENABLED(MAKRPANEL) || ENABLED(VIKI2) || ENABLED(miniVIKI)
|
||||||
// The MaKrPanel, Mini Viki, and Viki 2.0, ST7565 controller as well
|
// The MaKrPanel, Mini Viki, and Viki 2.0, ST7565 controller as well
|
||||||
U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0);
|
//U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0); // 8 stripes
|
||||||
|
U8GLIB_NHD_C12864_2X u8g(DOGLCD_CS, DOGLCD_A0); // 4 stripes
|
||||||
#elif ENABLED(U8GLIB_SSD1306)
|
#elif ENABLED(U8GLIB_SSD1306)
|
||||||
// Generic support for SSD1306 OLED I2C LCDs
|
// Generic support for SSD1306 OLED I2C LCDs
|
||||||
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST);
|
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST); // 8 stripes
|
||||||
|
U8GLIB_SSD1306_128X64_2X u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST); // 4 stripes
|
||||||
#elif ENABLED(U8GLIB_SH1106)
|
#elif ENABLED(U8GLIB_SH1106)
|
||||||
// Generic support for SH1106 OLED I2C LCDs
|
// Generic support for SH1106 OLED I2C LCDs
|
||||||
U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST);
|
//U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST); // 8 stripes
|
||||||
|
U8GLIB_SH1106_128X64_2X u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_FAST); // 4 stripes
|
||||||
#elif ENABLED(MINIPANEL)
|
#elif ENABLED(MINIPANEL)
|
||||||
// The MINIPanel display
|
// The MINIPanel display
|
||||||
U8GLIB_MINI12864 u8g(DOGLCD_CS, DOGLCD_A0);
|
//U8GLIB_MINI12864 u8g(DOGLCD_CS, DOGLCD_A0); // 8 stripes
|
||||||
|
U8GLIB_MINI12864_2X u8g(DOGLCD_CS, DOGLCD_A0); // 4 stripes
|
||||||
#else
|
#else
|
||||||
// for regular DOGM128 display with HW-SPI
|
// for regular DOGM128 display with HW-SPI
|
||||||
U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0); // HW-SPI Com: CS, A0
|
//U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0); // HW-SPI Com: CS, A0 // 8 stripes
|
||||||
|
U8GLIB_DOGM128_2X u8g(DOGLCD_CS, DOGLCD_A0); // HW-SPI Com: CS, A0 // 4 stripes
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LCD_PIXEL_WIDTH
|
#ifndef LCD_PIXEL_WIDTH
|
||||||
|
|
Loading…
Reference in a new issue