An mbed library for the Embedded Artists QVGA OLED 2.8 inch panel

Files at this revision

API Documentation at this revision

Comitter:
gbloice
Date:
Wed Mar 09 19:45:23 2011 +0000
Parent:
4:cd650f08e108
Commit message:
Fixed example with conditional compilation

Changed in this revision

EAQVGAOLED.h Show annotated file Show diff for this revision Revisions of this file
TextDisplay.h Show annotated file Show diff for this revision Revisions of this file
example.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r cd650f08e108 -r b3f5d19945ff EAQVGAOLED.h
--- a/EAQVGAOLED.h	Tue Feb 15 20:42:43 2011 +0000
+++ b/EAQVGAOLED.h	Wed Mar 09 19:45:23 2011 +0000
@@ -187,7 +187,7 @@
      * @param y0 Starting y position
      * @param x1 Ending x position
      * @param y1 Ending y position
-     * @param colour Outline colour of rectangle
+     * @param colour Filled colour of rectangle
      */
     void fillRectangle(const uint16_t x0, const uint16_t y0, const uint16_t x1, const uint16_t y1, uint16_t colour);
     
diff -r cd650f08e108 -r b3f5d19945ff TextDisplay.h
--- a/TextDisplay.h	Tue Feb 15 20:42:43 2011 +0000
+++ b/TextDisplay.h	Wed Mar 09 19:45:23 2011 +0000
@@ -21,8 +21,9 @@
 class TextDisplay : public Stream {
 public:
 
+    TextDisplay();
+
     // functions needing implementation in derived implementation class
-    TextDisplay();
     virtual void character(int column, int row, int c) = 0;
     virtual int rows() = 0;
     virtual int columns() = 0;
diff -r cd650f08e108 -r b3f5d19945ff example.cpp
--- a/example.cpp	Tue Feb 15 20:42:43 2011 +0000
+++ b/example.cpp	Wed Mar 09 19:45:23 2011 +0000
@@ -1,3 +1,5 @@
+#ifdef COMPILE_EXAMPLE1_CODE_EAQVGAOLED
+
 #include "mbed.h"
 #include "EAQVGAOLED.h"
 
@@ -72,3 +74,4 @@
         }
     }
 }
+#endif
\ No newline at end of file