A fork of dreschpe library with pin names added to the constructor

Fork of C12832_lcd by Peter Drescher

Revision:
12:4affce236743
Parent:
11:1d68011a277c
Parent:
7:0f5a3b0f3cab
Child:
13:8a9cad03124b
--- a/C12832_lcd.h	Sat Nov 09 01:00:59 2013 +0000
+++ b/C12832_lcd.h	Sat Nov 09 01:02:48 2013 +0000
@@ -41,6 +41,15 @@
   */
 enum {NORMAL,XOR};
 
+/** Bitmap
+ */
+struct Bitmap{
+    int xSize;
+    int ySize;
+    int Byte_in_Line;
+    char* data;
+    };
+
 class C12832_LCD : public GraphicsDisplay
 {
 public:
@@ -164,7 +173,7 @@
 
     void setmode(int mode);
 
-    int columns(void);
+    virtual int columns(void);
 
     /** calculate the max number of columns
      *
@@ -172,7 +181,7 @@
      * depends on actual font size
      *
      */
-    int rows(void);
+    virtual int rows(void);
 
     /** put a char on the screen
      *
@@ -180,7 +189,7 @@
      * @returns printed char
      *
      */
-    int _putc(int value);
+    virtual int _putc(int value);
 
     /** draw a character on given position out of the active font to the LCD
      *
@@ -196,7 +205,7 @@
      * @param x x-position (top left)
      * @param y y-position
      */
-    void locate(int x, int y);
+    virtual void locate(int x, int y);
     
     /** setup auto update of screen 
       *
@@ -204,13 +213,13 @@
       * if switched off the program has to call copy_to_lcd() 
       * to update screen from framebuffer
       */
-    void C12832_LCD::set_auto_up(unsigned int up);
+    void set_auto_up(unsigned int up);
 
     /** get status of the auto update function
       *
       *  @returns if auto update is on
       */
-    unsigned int C12832_LCD::get_auto_up(void);
+    unsigned int get_auto_up(void);
 
     /** Vars     */
     SPI _spi;
@@ -235,7 +244,16 @@
       *
       */
     void set_font(unsigned char* f);
+    
+    /** print bitmap to buffer
+      *
+      * @param bm Bitmap in flash
+      * @param x  x start
+      * @param y  y start 
+      *
+      */
 
+    void print_bm(Bitmap bm, int x, int y);
 
 protected: