Add support for LCM1602 16x2 I2C LCD adapter
This commit is contained in:
parent
7f2375ab46
commit
eda95d8bed
|
@ -150,6 +150,11 @@ script:
|
||||||
- sed -i 's/\/\/#define LCD_I2C_VIKI/#define LCD_I2C_VIKI/g' Marlin/Configuration.h
|
- sed -i 's/\/\/#define LCD_I2C_VIKI/#define LCD_I2C_VIKI/g' Marlin/Configuration.h
|
||||||
- rm -rf .build/
|
- rm -rf .build/
|
||||||
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
||||||
|
# LCM1602
|
||||||
|
- cp Marlin/Configuration.h.backup Marlin/Configuration.h
|
||||||
|
- sed -i 's/\/\/#define LCM1602/#define LCM1602/g' Marlin/Configuration.h
|
||||||
|
- rm -rf .build/
|
||||||
|
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega Marlin/Marlin.ino
|
||||||
# Enable filament sensor
|
# Enable filament sensor
|
||||||
- cp Marlin/Configuration.h.backup Marlin/Configuration.h
|
- cp Marlin/Configuration.h.backup Marlin/Configuration.h
|
||||||
- sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
|
- sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
|
||||||
|
|
|
@ -754,6 +754,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
|
||||||
|
|
||||||
//#define LCD_I2C_SAINSMART_YWROBOT
|
//#define LCD_I2C_SAINSMART_YWROBOT
|
||||||
|
|
||||||
|
//#define LCM1602 // LCM1602 Adapter for 16x2 LCD
|
||||||
|
|
||||||
// PANELOLU2 LCD with status LEDs, separate encoder and click inputs
|
// PANELOLU2 LCD with status LEDs, separate encoder and click inputs
|
||||||
//
|
//
|
||||||
// This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
|
// This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
|
||||||
|
|
|
@ -40,6 +40,10 @@
|
||||||
#elif ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)
|
#elif ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include <LiquidTWI2.h>
|
#include <LiquidTWI2.h>
|
||||||
|
#elif ENABLED(LCM1602)
|
||||||
|
#include <Wire.h>
|
||||||
|
#include <LCD.h>
|
||||||
|
#include <LiquidCrystal_I2C.h>
|
||||||
#elif ENABLED(DOGLCD)
|
#elif ENABLED(DOGLCD)
|
||||||
#include <U8glib.h> // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/)
|
#include <U8glib.h> // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/)
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -183,6 +183,12 @@ extern volatile uint8_t buttons; //an extended version of the last checked butt
|
||||||
#include <LiquidCrystal_SR.h>
|
#include <LiquidCrystal_SR.h>
|
||||||
#define LCD_CLASS LiquidCrystal_SR
|
#define LCD_CLASS LiquidCrystal_SR
|
||||||
LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN);
|
LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN);
|
||||||
|
#elif ENABLED(LCM1602)
|
||||||
|
#include <Wire.h>
|
||||||
|
#include <LCD.h>
|
||||||
|
#include <LiquidCrystal_I2C.h>
|
||||||
|
#define LCD_CLASS LiquidCrystal_I2C
|
||||||
|
LCD_CLASS lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
|
||||||
#else
|
#else
|
||||||
// Standard directly connected LCD implementations
|
// Standard directly connected LCD implementations
|
||||||
#include <LiquidCrystal.h>
|
#include <LiquidCrystal.h>
|
||||||
|
|
Loading…
Reference in a new issue