Skip to content

Commit ff9fc5b

Browse files
authored
Update LiquidCrystal.h
1 parent 11a761a commit ff9fc5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/LiquidCrystal.h

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
#define LCD_FUNCTIONSET 0x20
1414
#define LCD_SETCGRAMADDR 0x40
1515
#define LCD_SETDDRAMADDR 0x80
16+
#define LCD_BRIGHT100 0x00
17+
#define LCD_BRIGHT75 0x01
18+
#define LCD_BRIGHT50 0x02
19+
#define LCD_BRIGHT25 0x03
1620

1721
// flags for display entry mode
1822
#define LCD_ENTRYRIGHT 0x00
@@ -61,6 +65,8 @@ class LiquidCrystal : public Print {
6165

6266
void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS);
6367

68+
void bright (uint8_t brg) { command (LCD_FUNCTIONSET | _displayfunction | brg); }
69+
6470
void clear();
6571
void home();
6672

0 commit comments

Comments
 (0)