LCD Library: /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR_LCD3.h Source File

| LCD Library 1.2.1 LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.

- Main Page
- Classes
- Files

- File List
- File Members

/Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LiquidCrystal_SR_LCD3.h
Go to the documentation of this file.

    00001 // ---------------------------------------------------------------------------
    00002 // Created by Francisco Malpartida on 20/08/11.
    00003 // Copyright 2011 - Under creative commons license 3.0:
    00004 //        Attribution-ShareAlike CC BY-SA
    00005 //
    00006 // This module is a port by Marc MERLIN <marc_soft<at>merlins.org>
    00007 // See .cpp file for hardware details.
    00008 // ---------------------------------------------------------------------------
    00009 #ifndef _LIQUIDCRYSTAL_SR_LCD3_
    00010 #define _LIQUIDCRYSTAL_SR_LCD3_
    00011
    00012 #include <inttypes.h>
    00013 #include "LCD.h"
    00014
    00015
    00016 class LiquidCrystal_SR_LCD3 : public LCD
    00017 {
    00018 public:
    00030    LiquidCrystal_SR_LCD3 ( uint8_t srdata, uint8_t srclock, uint8_t enable );
    00031
    00044    virtual void send(uint8_t value, uint8_t mode);
    00045
    00046
    00047 private:
    00048
    00054    void init ( uint8_t srdata, uint8_t srclock, uint8_t enable, uint8_t lines,
    00055               uint8_t font );
    00061    void write4bits ( uint8_t );
    00062    void _pushOut ( uint8_t );
    00063
    00064    // Serial Data pin
    00065    fio_bit _srdata_bit;
    00066    fio_register _srdata_register;
    00067
    00068    // Clock Pin
    00069    fio_bit _srclock_bit;
    00070    fio_register _srclock_register;
    00071
    00072    // Enable Pin
    00073    fio_bit _strobe_bit;
    00074    fio_register _strobe_register;
    00075 };
    00076
    00077 #endif
    00078

All Classes Files Functions Variables Typedefs Defines