-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2ed1f6
commit 6de7fbe
Showing
3 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
/************************************************************************** | ||
LIQUIDCRYSTAL_I2C FOR ESP8266 OR ARDUINO | ||
*************************************************************************** | ||
AUTOR: LUCAS MAZIERO - Electrical Engineer | ||
E-MAIL: [email protected] | ||
CIDADE: Santa Maria - Rio Grande do Sul - Brasil | ||
AUTHOR: LUCAS MAZIERO - Electrical Engineer | ||
EMAIL: [email protected] | ||
CITY: Santa Maria - Rio Grande do Sul - Brasil | ||
*************************************************************************** | ||
Versão: 1.0 | ||
Data: 30/06/2017 | ||
Modificado: --/--/20-- | ||
Version: 1.1 | ||
Date: 30/06/2017 | ||
Modified: 02/07/2017 | ||
*************************************************************************** | ||
BASE DO CODIGO: https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | ||
CODE BASE: https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | ||
*************************************************************************** | ||
CHANGELOG: | ||
* 30/06/2017 (1.0v): | ||
-> add degug #if defined(ESP8266) | ||
-> Add new function "begin(uint8_t sda, uint8_t scl)" | ||
-> Add new function "init()" | ||
* 02/07/2017 (1.1v): | ||
-> Add new function "getBacklight()" get status of backlight | ||
|
||
*************************************************************************** | ||
Copyright(2017) by: Lucas Maziero. | ||
|
@@ -226,6 +228,11 @@ void LiquidCrystal_I2C::backlight(void) { | |
expanderWrite(0); | ||
} | ||
|
||
// Get status of blacklight | ||
bool LiquidCrystal_I2C::getBacklight() { | ||
return _backlightval == LCD_BACKLIGHT; | ||
} | ||
|
||
/*********** mid level commands, for sending data/cmds */ | ||
|
||
inline void LiquidCrystal_I2C::command(uint8_t value) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
/************************************************************************** | ||
LIQUIDCRYSTAL_I2C FOR ESP8266 OR ARDUINO | ||
*************************************************************************** | ||
AUTOR: LUCAS MAZIERO - Electrical Engineer | ||
E-MAIL: [email protected] | ||
CIDADE: Santa Maria - Rio Grande do Sul - Brasil | ||
AUTHOR: LUCAS MAZIERO - Electrical Engineer | ||
EMAIL: [email protected] | ||
CITY: Santa Maria - Rio Grande do Sul - Brasil | ||
*************************************************************************** | ||
Versão: 1.0 | ||
Data: 30/06/2017 | ||
Modificado: --/--/20-- | ||
Version: 1.1 | ||
Date: 30/06/2017 | ||
Modified: 02/07/2017 | ||
*************************************************************************** | ||
BASE DO CODIGO: https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | ||
CODE BASE: https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library | ||
*************************************************************************** | ||
CHANGELOG: | ||
* 30/06/2017 (1.0v): | ||
-> add degug #if defined(ESP8266) | ||
-> Add new function "begin(uint8_t sda, uint8_t scl)" | ||
-> Add new function "init()" | ||
* 02/07/2017 (1.1v): | ||
-> Add new function "getBacklight()" get status of backlight | ||
|
||
*************************************************************************** | ||
Copyright(2017) by: Lucas Maziero. | ||
**************************************************************************/ | ||
#ifndef LIQUID_CRYSTAL_I2C_H | ||
|
||
#ifndef LIQUID_CRYSTAL_I2C_H | ||
#define LIQUID_CRYSTAL_I2C_H | ||
|
||
#include <Arduino.h> | ||
|
@@ -157,6 +160,7 @@ class LiquidCrystal_I2C : public Print { | |
void shiftDecrement(); | ||
void noBacklight(); | ||
void backlight(); | ||
bool getBacklight(); | ||
void autoscroll(); | ||
void noAutoscroll(); | ||
void createChar(uint8_t, uint8_t[]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters