Add support for LCM1602 16x2 I2C LCD adapter
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							7f2375ab46
						
					
				
				
					commit
					eda95d8bed
				
			@@ -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 LCM1602 // LCM1602 Adapter for 16x2 LCD
 | 
			
		||||
 | 
			
		||||
// 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 )
 | 
			
		||||
 
 | 
			
		||||
@@ -40,6 +40,10 @@
 | 
			
		||||
  #elif ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)
 | 
			
		||||
    #include <Wire.h>
 | 
			
		||||
    #include <LiquidTWI2.h>
 | 
			
		||||
  #elif ENABLED(LCM1602)
 | 
			
		||||
    #include <Wire.h>
 | 
			
		||||
    #include <LCD.h>
 | 
			
		||||
    #include <LiquidCrystal_I2C.h>
 | 
			
		||||
  #elif ENABLED(DOGLCD)
 | 
			
		||||
    #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://code.google.com/p/u8glib/)
 | 
			
		||||
  #else
 | 
			
		||||
 
 | 
			
		||||
@@ -183,6 +183,12 @@ extern volatile uint8_t buttons;  //an extended version of the last checked butt
 | 
			
		||||
  #include <LiquidCrystal_SR.h>
 | 
			
		||||
  #define LCD_CLASS LiquidCrystal_SR
 | 
			
		||||
  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
 | 
			
		||||
  // Standard directly connected LCD implementations
 | 
			
		||||
  #include <LiquidCrystal.h>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user