![]() |
LCD Library 1.1.7
LCD Library - LCD control class hierarchy library. Drop in replacement for the LiquidCrystal Library.
|
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 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 00032 00045 virtual void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS); 00046 00059 virtual void send(uint8_t value, uint8_t mode); 00060 00061 00062 private: 00063 00069 void init ( uint8_t srdata, uint8_t srclock, uint8_t enable, uint8_t lines, 00070 uint8_t font ); 00076 void write4bits ( uint8_t ); 00077 void _pushOut ( uint8_t ); 00078 00079 uint8_t _srdata_pin; // Serial Data pin 00080 uint8_t _srclock_pin; // Clock Pin 00081 uint8_t _strobe_pin; // Enable Pin 00082 }; 00083 00084 #endif 00085