From e3701fb3f2398a6d18bfd94a4a7f36e065d57d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Silva?= Date: Wed, 8 Mar 2017 22:29:47 -0300 Subject: [PATCH] Update LiquidCrystal_I2C.cpp --- LiquidCrystal_I2C.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LiquidCrystal_I2C.cpp b/LiquidCrystal_I2C.cpp index c9b6cf0..5619654 100644 --- a/LiquidCrystal_I2C.cpp +++ b/LiquidCrystal_I2C.cpp @@ -192,6 +192,10 @@ void LiquidCrystal_I2C::backlight(void) { _backlightval=LCD_BACKLIGHT; expanderWrite(0); } +bool LiquidCrystal_I2C::getBacklight() { + return _backlightval == LCD_BACKLIGHT; +} + /*********** mid level commands, for sending data/cmds */