New LiquidCrystal library  1.3.2
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 #if (ARDUINO < 10000)
34  #include <../Wire/Wire.h>
35 #else
36  #include <Wire.h>
37 #endif
38 #include "LCD.h"
39 
40 
42 {
43 public:
44 
54  LiquidCrystal_I2C_ByVac (uint8_t lcd_Addr);
55 
72  virtual void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS);
73 
86  virtual void send(uint8_t value, uint8_t mode);
87 
88 
96  void setBacklight ( uint8_t value );
97 
106  void setContrast ( uint8_t value );
107 
108 private:
109 
115  int init();
116 
126  uint8_t _Addr; // I2C Address of the IO expander
127 
128 };
129 
130 #endif
virtual void send(uint8_t value, uint8_t mode)
Definition: LiquidCrystal_I2C_ByVac.cpp:99
Definition: LiquidCrystal_I2C_ByVac.h:41
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