New LiquidCrystal library  1.3.1
Generic LCD control library
/Users/fmalpartida/Documents/development/mercurial repos/SW/NewliquidCrystal/LiquidCrystal_I2C_ByVac.h
1 // ---------------------------------------------------------------------------
2 // Created by GHPS on 5/06/2012.
3 // Copyright 2012 - Under creative commons license 3.0:
4 // Attribution-ShareAlike CC BY-SA
5 //
6 // This software is furnished "as is", without technical support, and with no
7 // warranty, express or implied, as to its usefulness for any purpose.
8 //
9 // Thread Safe: No
10 // Extendable: Yes
11 //
12 // @file LiquidCrystal_I2C_ByVac.c
13 // This file implements a basic liquid crystal library that comes as standard
14 // in the Arduino SDK but using the extension board BV4218/BV4208 from ByVac.
15 //
16 // @brief
17 // This is a basic implementation of the LiquidCrystal library of the
18 // Arduino SDK. The original library has been reworked in such a way that
19 // this class implements the all methods to command an LCD based
20 // on the Hitachi HD44780 and compatible chipsets using I2C extension
21 // backpack BV4218 from ByVac.
22 //
23 // The functionality provided by this class and its base class is identical
24 // to the original functionality of the Arduino LiquidCrystal library.
25 //
26 // @author GHPS - ghps-et-users-sourceforge-net
27 // ---------------------------------------------------------------------------
28 #ifndef LiquidCrystal_I2C_ByVac_h
29 #define LiquidCrystal_I2C_ByVac_h
30 #include <inttypes.h>
31 #include <Print.h>
32 
33 #include <../Wire/Wire.h>
34 #include "LCD.h"
35 
36 
38 {
39 public:
40 
50  LiquidCrystal_I2C_ByVac (uint8_t lcd_Addr);
51 
68  virtual void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS);
69 
82  virtual void send(uint8_t value, uint8_t mode);
83 
84 
92  void setBacklight ( uint8_t value );
93 
102  void setContrast ( uint8_t value );
103 
104 private:
105 
111  int init();
112 
122  uint8_t _Addr; // I2C Address of the IO expander
123 
124 };
125 
126 #endif
virtual void send(uint8_t value, uint8_t mode)
Definition: LiquidCrystal_I2C_ByVac.cpp:99
Definition: LiquidCrystal_I2C_ByVac.h:37
Definition: LCD.h:187
virtual void begin(uint8_t cols, uint8_t rows, uint8_t charsize=LCD_5x8DOTS)
Definition: LiquidCrystal_I2C_ByVac.cpp:49
void setBacklight(uint8_t value)
Definition: LiquidCrystal_I2C_ByVac.cpp:60
void setContrast(uint8_t value)
Definition: LiquidCrystal_I2C_ByVac.cpp:71
LiquidCrystal_I2C_ByVac(uint8_t lcd_Addr)
Definition: LiquidCrystal_I2C_ByVac.cpp:38