Skip to content

Update LiquidCrystal.h #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/

This library allows an Arduino board to control liquid crystal displays (LCDs) based on the Hitachi HD44780 (or a compatible) chipset, which is found on most text-based LCDs.

For using with VFD Futaba M242SD was added command for setting brightness:

Usage:

lcd.bright(LCD_BRIGHT100); // set brightness to 100%

lcd.bright(LCD_BRIGHT75); // set brightness to 75%

lcd.bright(LCD_BRIGHT50); // set brightness to 50%

lcd.bright(LCD_BRIGHT25); // set brightness to 25%

Datasheet: https://www.mouser.com/datasheet/2/921/Futaba-06-11-2019-Futaba_VFD_Modules-1602274.pdf



For more information about this library please visit us at

https://www.arduino.cc/en/Reference/{repository-name}
Expand Down
6 changes: 6 additions & 0 deletions src/LiquidCrystal.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#define LCD_FUNCTIONSET 0x20
#define LCD_SETCGRAMADDR 0x40
#define LCD_SETDDRAMADDR 0x80
#define LCD_BRIGHT100 0x00
#define LCD_BRIGHT75 0x01
#define LCD_BRIGHT50 0x02
#define LCD_BRIGHT25 0x03

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

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

void bright (uint8_t brg) { command (LCD_FUNCTIONSET | _displayfunction | brg); }

void clear();
void home();

Expand Down