Guillermo Stedile / RA8875

Dependencies:   GPS

Dependents:   SNOCC_V1 SNOCC_V2

Fork of RA8875 by SNOCC

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Mon Jan 19 13:32:56 2015 +0000
Parent:
86:e86b355940f4
Child:
88:bfddef6ec836
Commit message:
Added pixel api that uses point_t type.

Changed in this revision

RA8875.cpp Show annotated file Show diff for this revision Revisions of this file
RA8875.h Show annotated file Show diff for this revision Revisions of this file
--- a/RA8875.cpp	Sat Jan 17 20:59:51 2015 +0000
+++ b/RA8875.cpp	Mon Jan 19 13:32:56 2015 +0000
@@ -938,6 +938,16 @@
 }
 
 
+RetCode_t RA8875::pixel(point_t p, color_t color)
+{
+    return pixel(p.x, p.y, color);
+}
+
+RetCode_t RA8875::pixel(point_t p)
+{
+    return pixel(p.x, p.y);
+}
+
 RetCode_t RA8875::pixel(loc_t x, loc_t y, color_t color)
 {
     RetCode_t ret;
--- a/RA8875.h	Sat Jan 17 20:59:51 2015 +0000
+++ b/RA8875.h	Mon Jan 19 13:32:56 2015 +0000
@@ -1214,6 +1214,23 @@
     /// @returns the current foreground color.
     ///
     color_t GetForeColor(void);
+    
+    /// Draw a pixel in the specified color.
+    ///
+    /// @note Unlike many other operations, this does not
+    ///         set the forecolor!
+    ///
+    /// @param[in] p is the point_t defining the location.
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    virtual RetCode_t pixel(point_t p, color_t color);
+    
+    /// Draw a pixel in the current foreground color.
+    ///
+    /// @param[in] p is the point_t defining the location.
+    /// @returns success/failure code. @see RetCode_t.
+    ///
+    virtual RetCode_t pixel(point_t p);
         
     /// Draw a pixel in the specified color.
     ///