Arduino Library – LiquidTWI2

library icon

Installatie van Arduino IDE libraries: Arduino info
arduino logo rond

A lean, high speed I2C LCD Library for Arduino, which supports MCP23008 (Adafruit LCD Backpack) and MCP23017 (Adafruit RGB LCD Shield)A lean, high speed I2C LCD Library for Arduino, which supports MCP23008 (Adafruit LCD Backpack) and MCP23017 (Adafruit RGB LCD Shield)
Compatible with Adafruit I2C LCD backpack (MCP23008) andAdafruit RGB LCD Shield (and optionally, Panelolu2)

Installation: extract LiquidTWI2/ into <arduinosketchbook>/libraries/LiquidTWI2

To use with Panelolu2
lcd.setMCPType(LTI_TYPE_MCP23017);
Panelolu2 only has encoder.. use PANELOLU_ENCODER_X bits instead of BUTTON_xxx

Usage:  Compatible with Arduino LiquidCrystal library except that setMCPType() MUST  be called at least once before begin() is called.

If you change the i2c address of the board, set “lcd(0x20)” to your new 3-bit  address.  If you have more than a 16×2 LCD, change “lcd.begin(16,2)” to reflect the  columns and rows of your LCD.

Normally, the code will hang if the device is not detected at the specified  i2c address.  If you want to compile your code for an optionally installed  LCD, call the constructor with 2nd parameter deviceDetect=1. E.g:     LiquidTWI2 lcd(0x20,1);  When enabled, if the device is not detected at the specified address when  begin() is called, then the rest of the function calls become NOOPs

Note that the library can switch modes at runtime. Simply call setMCPType(),  followed by begin().  This allows you to create a firmware which is compatible with either kind  of LCD module, and select the type from EEPROM.

For memory-constrained projects, disable the unnecessary support by  commenting out the corresponding MCP230xx in LiquidTWI2.h, and DETECT_DEVICE


Dowload LiquidTWI2 @ Github

[#/arduino/libraries/liquidtwi2″ ]