mirror of
https://github.com/digistump/DigistumpArduino.git
synced 2025-09-17 09:22:28 -07:00
switch to setup for Arduino Boards Manager
This commit is contained in:
BIN
digistump-sam/libraries/DigiXLCD/info/BC557.pdf
Normal file
BIN
digistump-sam/libraries/DigiXLCD/info/BC557.pdf
Normal file
Binary file not shown.
BIN
digistump-sam/libraries/DigiXLCD/info/Image.jpg
Normal file
BIN
digistump-sam/libraries/DigiXLCD/info/Image.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 61 KiB |
BIN
digistump-sam/libraries/DigiXLCD/info/PCF8574P.pdf
Normal file
BIN
digistump-sam/libraries/DigiXLCD/info/PCF8574P.pdf
Normal file
Binary file not shown.
BIN
digistump-sam/libraries/DigiXLCD/info/Schematic_diagram.jpg
Normal file
BIN
digistump-sam/libraries/DigiXLCD/info/Schematic_diagram.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 KiB |
@@ -0,0 +1,55 @@
|
||||
Notes for users with a Pollin.de interface board
|
||||
http://www.pollin.de/shop/dt/NDU4OTgxOTk-/Bausaetze_Module/Bausaetze/LCD_I2C_Modul.html
|
||||
|
||||
The pollin interface board will not work with de default library.
|
||||
To get it working two control lines to the LCD need to be changed.
|
||||
|
||||
Open file "LiquidCrystal_I2C.h" with a text editor like Notepad (not WordPad !)
|
||||
|
||||
In that file look for:
|
||||
#define En B00010000 // Enable bit
|
||||
#define Rw B00100000 // Read/Write bit
|
||||
#define Rs B01000000 // Register select bit
|
||||
|
||||
Replace these lines by:
|
||||
#define En B01000000 // Enable bit
|
||||
#define Rw B00100000 // Read/Write bit
|
||||
#define Rs B00010000 // Register select bit
|
||||
|
||||
|
||||
|
||||
People at Pollin also have misunderstood the PCF8574 Datasheet and list the wrong addresses on their PCB
|
||||
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
|
||||
|
||||
They also seem to ship boards with a PCF8574
|
||||
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
|
||||
|
||||
|
||||
They have also chosen two rather high pull-up resistors (10K) for the I2C lines. Usually two 4K7 resistors should do the job.
|
||||
Please note that on a I2C bus only one device should have the pull-up resistors installed!
|
||||
|
||||
I hope this helps in getting your LCD working.
|
||||
|
||||
Mario
|
36
digistump-sam/libraries/DigiXLCD/info/readme.txt
Normal file
36
digistump-sam/libraries/DigiXLCD/info/readme.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
LiquidCrystal_I2C V2.0
|
||||
|
||||
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 PCF8574 extender (see datasheet for details).
|
||||
4 of the 8 outputs are used for LDC data lines 4 to 7.
|
||||
3 outputs are used for the Enable, register-select and Read/Write lines.
|
||||
The one output left can be used to control the backlight of the LCD (if available).
|
||||
For backlight control some extra resistors and a pnp-type transistor are required (for details see
|
||||
schematic diagram).
|
||||
|
||||
The 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 0x20 and the base address for the PCF8574A is 0x38.
|
||||
The examples included in this zip file assume the use of an PCF8574 set for address 0x20
|
||||
(A0, A1 and A3 grounded).
|
||||
|
||||
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.
|
||||
|
||||
Update 8-12-2011:
|
||||
Due to the relaese of Arduino IDE 1.0 some changes were made to the library to get it working under the new IDE.
|
||||
Because of these changes this version of the LiquidCrystal_I2C library can not be used for older IDE versions.
|
||||
The old version of the LiquidCrystal_I2Clibrary can be downloaded form http://www.xs4all.nl/~hmario/arduino/LiquidCrystal_I2C/V1.0/LiquidCrystal_I2C_V1.0.zip
|
||||
|
||||
Download the latest version from:
|
||||
http://www.xs4all.nl/~hmario/arduino/LiquidCrystal_I2C/LiquidCrystal_I2C.zip
|
||||
(Thanks to Ailton F. for beta testing.)
|
||||
|
||||
|
||||
Mario H.
|
||||
atmega@xs4all.nl
|
Reference in New Issue
Block a user