Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RA8875 by
Revision 87:ee2240581aa7, committed 2015-01-19
- 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.
///
