LCD ST7036 Library 1.0
LCD ST7036 Library following the LCD API 1.0
/Users/fmalpartida/development/ardWorkspace/LCDC0220BiZLib/lcd.h
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 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: No
00011 //
00012 // @file lcd.h
00013 // LCD API 1.0 interface declaration class.
00014 // 
00015 // @brief Based on the LCD API 1.0 by dale@wentztech.com
00016 //        This class implements the LCD API abstract library class from
00017 //        which all LCDs inherite.
00018 //
00019 // @author F. Malpartida - fmalpartida@gmail.com
00020 // ---------------------------------------------------------------------------
00021 
00022 #ifndef LCD_h
00023 #define LCD_h
00024 #include "WConstants.h"
00025 #include "Print.h"
00026 
00027 
00028 #define _LCDEXPANDED                            // If defined turn on advanced functions
00029 
00030 #define _LCD_API_VERSION      "1.0"
00031 
00032 class LCD : public Print 
00033 {
00034         
00035 public: 
00036         
00046         virtual void command(uint8_t value) = 0;
00047    
00061         virtual void init() = 0;
00062    
00074         virtual void setDelay(int,int) = 0;
00075         
00087         virtual void write(uint8_t) = 0;
00088    
00101    virtual void write(const uint8_t *buffer, size_t size) = 0;
00102         
00108         virtual void clear() = 0;
00109         
00115         virtual void home() = 0;
00116         
00123         virtual void on() = 0;
00124    
00130         virtual void off() = 0;
00131    
00137         virtual void cursor_on() = 0;
00138    
00145         virtual void cursor_off() = 0;
00146         
00152         virtual void blink_on() = 0;
00153         
00160         virtual void blink_off() = 0;
00161         
00174         virtual void setCursor(uint8_t Line, uint8_t Col ) = 0;
00175         
00176         //
00177    // EXPANDED FUNCTIONALITY METHODS
00178    // --------------------------------------------------------------------------
00179         
00180 #ifdef _LCDEXPANDED             
00181    
00191         virtual uint8_t status() = 0;
00192    
00207         virtual void load_custom_character(uint8_t char_num, uint8_t *rows) = 0;
00208    
00214         virtual uint8_t keypad() = 0;
00215         
00216         void printstr(const char[]);
00217         
00231         virtual void setBacklight(uint8_t new_val) = 0;
00232    
00243         virtual void setContrast(uint8_t new_val) = 0;
00244    
00245    
00246 #endif
00247         
00248 private:
00249 
00250 };
00251 
00252 #endif
00253 
 All Classes Functions