![]() |
Bare Metal Programming Tool Kit
|
create a frame controlled by a pcd8544 LCD controller More...
#include <pcd8544.h>
Public Member Functions | |
| pcd8544 () | |
| construct the controller | |
| void | checked_write (const bmptk::graphics::vector p, const bmptk::graphics::color c) |
| write one pixel | |
| void | clear (const bmptk::graphics::color c=bmptk::graphics::color::white()) |
| fill the full frame with the indicated color | |
Public Member Functions inherited from bmptk::graphics::frame | |
| frame (const vector size) | |
| create a frame of specified size | |
| vector | size_get () const |
| get the size of the frame | |
| virtual vector | translate_outfrom (const vector p) const |
| translate a subframe coordinate to a master frame coordinate | |
| virtual vector | translate_into (const vector p) const |
| translate a master frame coordinate to a subframe coordinate | |
| bool | is_valid (vector p) |
| whether p is within the frame | |
| color | bg_get () |
| get the backround color | |
| void | write (const vector p, const color c) |
| write one pixel, address specified by vector | |
| virtual void | flush () |
| for buffered frames: write the changes to the underlying frame | |
Static Protected Member Functions | |
| static void | command (unsigned char d) |
| send command to the controller chip | |
Additional Inherited Members | |
Protected Attributes inherited from bmptk::graphics::frame | |
| const vector | size |
| frame size | |
| color | bg |
| most recently applied background color (as used in clear()) | |
create a frame controlled by a pcd8544 LCD controller
|
inline |
|
inlinevirtual |
write one pixel
A concrete frame class must implement this function. It can safely assume that the address is within the frame.
Implements bmptk::graphics::frame.
|
inlinevirtual |
fill the full frame with the indicated color
This method fills the screen with the indicated color and save this color for bg_get().
Reimplemented from bmptk::graphics::frame.
1.8.2