|
|
@ -52,6 +52,11 @@ LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t l |
|
|
|
_backlightval = LCD_NOBACKLIGHT; |
|
|
|
_backlightval = LCD_NOBACKLIGHT; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void LiquidCrystal_I2C::oled_init(){ |
|
|
|
|
|
|
|
_oled = true; |
|
|
|
|
|
|
|
init_priv(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void LiquidCrystal_I2C::init(){ |
|
|
|
void LiquidCrystal_I2C::init(){ |
|
|
|
init_priv(); |
|
|
|
init_priv(); |
|
|
|
} |
|
|
|
} |
|
|
@ -127,6 +132,7 @@ void LiquidCrystal_I2C::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) { |
|
|
|
void LiquidCrystal_I2C::clear(){ |
|
|
|
void LiquidCrystal_I2C::clear(){ |
|
|
|
command(LCD_CLEARDISPLAY);// clear display, set cursor position to zero
|
|
|
|
command(LCD_CLEARDISPLAY);// clear display, set cursor position to zero
|
|
|
|
delayMicroseconds(2000); // this command takes a long time!
|
|
|
|
delayMicroseconds(2000); // this command takes a long time!
|
|
|
|
|
|
|
|
if (_oled) setCursor(0,0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void LiquidCrystal_I2C::home(){ |
|
|
|
void LiquidCrystal_I2C::home(){ |
|
|
|