forked from arduino-libraries/LiquidCrystal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) LCD and LCD_I2C now works together; 2) Added documentation in extras; 3) Moved defines in separate file; 4) Changed all examples to work with base class LCD; 5) Reworked virtual function send, write; 6) New initialization variants; 7) Added new files to gitignore 8) Added private functions for bit flags controlling in base LCD class; 9) Added destructor for all classes; 10) In base LCD class changed to protected: _cols, _rows, _displayfunction, _displaycontrol, _displaymode; 11) Added DEFAULT values as defines: LCD_DEFAULT_COLS, LCD_DEFAULT_ROWS, LCD_DEFAULT_ADDR, LCD_BACKLIGHT; 12) Added variations of functiond to non _AVR_ boards;
- Loading branch information
1 parent
b271b0c
commit ec029d7
Showing
28 changed files
with
687 additions
and
765 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 +1,6 @@ | ||
.vscode/settings.json | ||
.vscode | ||
|
||
.github/* | ||
.github | ||
.codespellrc |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
docs/extras/info/Chinese_I2C_Serial_LCD_Converter_Board_1602_2004.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// LiquidCrystal_I2C V2.0 - Mario H. [email protected] | ||
// Mods for Chinese I2C converter board - Murray R. Van Luyn. [email protected] | ||
|
||
The LiquidCrystal_I2C library is a modified version of the standard LiquidCrystal library as found on | ||
the Arduino website. | ||
This library is intended to be used when a parallel HD44780 compatible LCD is controlled over I2C using | ||
a Chinese PCF8574 extender. | ||
4 of the 8 outputs are used for LCD data lines 4 to 7. | ||
4 outputs are used for the Enable, register-select, Read/Write and backlight control lines. | ||
|
||
The Chinese PCF8574 extender is available in two versions, the PCF8574 and the PCF8574A. | ||
The only difference between the two is the I2C base address. | ||
The base address for the PCF8574 is 0x27 and the base address for the PCF8574A is 0x4E. | ||
The examples included in this zip file assume the use of an PCF8574 set for address 0x27 | ||
(A0, A1 and A3 un-linked, so pulled high). | ||
|
||
For PCF8574 the addressing is: | ||
|
||
Jp3 Jp2 Jp1 | ||
A2 A1 A0 Dec Hex | ||
L L L 32 0x20 | ||
L L H 33 0x21 | ||
L H L 34 0x22 | ||
L H H 35 0x23 | ||
H L L 36 0x24 | ||
H L H 37 0x25 | ||
H H L 38 0x26 | ||
H H H 39 0x27 | ||
|
||
For PCF8574A the addressing is: | ||
|
||
Jp3 Jp2 Jp1 | ||
A2 A1 A0 Dec Hex | ||
L L L 56 0x38 | ||
L L H 57 0x39 | ||
L H L 64 0x40 | ||
L H H 74 0x4A | ||
H L L 75 0x4B | ||
H L H 76 0x4C | ||
H H L 77 0x4D | ||
H H H 78 0x4E | ||
|
||
For compatibility reasons this library contains some aliases for functions that are known under different | ||
names in other libraries. This should make it fairly easy to implement the library in existing sketches | ||
without changing to much code. | ||
Functions not supported by this library will return nothing at all and in case a return value is expected | ||
the function will return 0. |
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
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
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
Oops, something went wrong.