Class daisy::OledColorDisplay¶
template <typename DisplayDriver>
ClassList > daisy > OledColorDisplay
#include <oled_color_display.h>
Inherits the following classes: daisy::ColorGraphicsDisplayImpl
Classes¶
Type | Name |
---|---|
struct | Config |
Public Functions¶
Type | Name |
---|---|
virtual void | DrawPixel (uint_fast8_t x, uint_fast8_t y, bool on) override |
virtual void | Fill (bool on) override |
virtual uint16_t | Height () override const |
void | Init (Config config) |
OledColorDisplay () |
|
virtual void | SetColorBG (uint8_t red, uint8_t green, uint8_t blue) |
virtual void | SetColorFG (uint8_t red, uint8_t green, uint8_t blue) |
virtual void | Update () override |
virtual uint16_t | Width () override const |
virtual | ~OledColorDisplay () |
Public Functions inherited from daisy::ColorGraphicsDisplayImpl¶
See daisy::ColorGraphicsDisplayImpl
Type | Name |
---|---|
ColorGraphicsDisplayImpl () |
|
virtual void | DrawArc (uint_fast8_t x, uint_fast8_t y, uint_fast8_t radius, int_fast16_t start_angle, int_fast16_t sweep, bool on) override |
virtual void | DrawLine (uint_fast8_t x1, uint_fast8_t y1, uint_fast8_t x2, uint_fast8_t y2, bool on) override |
virtual void | DrawRect (uint_fast8_t x1, uint_fast8_t y1, uint_fast8_t x2, uint_fast8_t y2, bool on, bool fill=false) override |
virtual char | WriteChar (char ch, FontDef font, bool on) override |
virtual char | WriteString (const char * str, FontDef font, bool on) override |
virtual Rectangle | WriteStringAligned (const char * str, const FontDef & font, Rectangle boundingBox, Alignment alignment, bool on) override |
virtual | ~ColorGraphicsDisplayImpl () |
Public Functions inherited from daisy::ColorGraphicsDisplay¶
See daisy::ColorGraphicsDisplay
Protected Attributes inherited from daisy::ColorGraphicsDisplay¶
See daisy::ColorGraphicsDisplay
Type | Name |
---|---|
uint16_t | currentX_ |
uint16_t | currentY_ |
Detailed Description¶
This class is for drawing to a monochrome OLED display.
Public Functions Documentation¶
function DrawPixel¶
inline virtual void daisy::OledColorDisplay::DrawPixel (
uint_fast8_t x,
uint_fast8_t y,
bool on
) override
Sets the pixel at the specified coordinate to be on/off.
Parameters:
x
x Coordinatey
y coordinateon
on or off
Implements daisy::ColorGraphicsDisplay::DrawPixel
function Fill¶
Fills the entire display with either on/off.
Parameters:
on
Sets on or off.
Implements daisy::ColorGraphicsDisplay::Fill
function Height¶
Implements daisy::ColorGraphicsDisplay::Height
function Init¶
function OledColorDisplay¶
function SetColorBG¶
inline virtual void daisy::OledColorDisplay::SetColorBG (
uint8_t red,
uint8_t green,
uint8_t blue
)
Set background color
Parameters:
red
Red colorgreen
Green colorblue
Blue color
Implements daisy::ColorGraphicsDisplay::SetColorBG
function SetColorFG¶
inline virtual void daisy::OledColorDisplay::SetColorFG (
uint8_t red,
uint8_t green,
uint8_t blue
)
Set foreground color
Parameters:
red
Red colorgreen
Green colorblue
Blue color
Implements daisy::ColorGraphicsDisplay::SetColorFG
function Update¶
Writes the current display buffer to the OLED device using SPI or I2C depending on how the object was initialized.
Implements daisy::ColorGraphicsDisplay::Update
function Width¶
Implements daisy::ColorGraphicsDisplay::Width
function ~OledColorDisplay¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/disp/oled_color_display.h