LiquidCrystal_I2C_ByVac.h
Go to the documentation of this file.

    00001 // ---------------------------------------------------------------------------
    00002 // Created by GHPS on 5/06/2012.
    00003 // Copyright 2012 - Under creative commons license 3.0:
    00004 //        Attribution-ShareAlike CC BY-SA
    00005 //
    00006 // This software is furnished "as is", without technical support, and with no
    00007 // warranty, express or implied, as to its usefulness for any purpose.
    00008 //
    00009 // Thread Safe: No
    00010 // Extendable: Yes
    00011 //
    00012 // @file LiquidCrystal_I2C_ByVac.c
    00013 // This file implements a basic liquid crystal library that comes as standard
    00014 // in the Arduino SDK but using the extension board BV4218/BV4208 from ByVac.
    00015 //
    00016 // @brief
    00017 // This is a basic implementation of the LiquidCrystal library of the
    00018 // Arduino SDK. The original library has been reworked in such a way that
    00019 // this class implements the all methods to command an LCD based
    00020 // on the Hitachi HD44780 and compatible chipsets using I2C extension
    00021 // backpack BV4218 from ByVac.
    00022 //
    00023 // The functionality provided by this class and its base class is identical
    00024 // to the original functionality of the Arduino LiquidCrystal library.
    00025 //
    00026 // @author GHPS - ghps-et-users-sourceforge-net
    00027 // ---------------------------------------------------------------------------
    00028 #ifndef LiquidCrystal_I2C_ByVac_h
    00029 #define LiquidCrystal_I2C_ByVac_h
    00030 #include <inttypes.h>
    00031 #include <Print.h>
    00032
    00033 #include <../Wire/Wire.h>
    00034 #include "LCD.h"
    00035
    00036
    00037 class LiquidCrystal_I2C_ByVac : public LCD
    00038 {
    00039 public:
    00040
    00050    LiquidCrystal_I2C_ByVac (uint8_t lcd_Addr);
    00051
    00068    virtual void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS);
    00069
    00082    virtual void send(uint8_t value, uint8_t mode);
    00083
    00084
    00092    void setBacklight ( uint8_t value );
    00093
    00102    void setContrast ( uint8_t value );
    00103
    00104 private:
    00105
    00111    int  init();
    00112
    00122    uint8_t _Addr;             // I2C Address of the IO expander
    00123
    00124 };
    00125
    00126 #endif

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines