Class daisy::OledDisplay¶
template <typename DisplayDriver>
ClassList > daisy > OledDisplay
#include <oled_display.h>
Inherits the following classes: daisy::OneBitGraphicsDisplayImpl
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) |
OledDisplay () |
|
virtual void | Update () override |
virtual bool | UpdateFinished () override |
virtual uint16_t | Width () override const |
virtual | ~OledDisplay () |
Public Functions inherited from daisy::OneBitGraphicsDisplayImpl¶
See daisy::OneBitGraphicsDisplayImpl
Type | Name |
---|---|
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 |
OneBitGraphicsDisplayImpl () |
|
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 | ~OneBitGraphicsDisplayImpl () |
Public Functions inherited from daisy::OneBitGraphicsDisplay¶
See daisy::OneBitGraphicsDisplay
Protected Attributes inherited from daisy::OneBitGraphicsDisplay¶
See daisy::OneBitGraphicsDisplay
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::OledDisplay::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::OneBitGraphicsDisplay::DrawPixel
function Fill¶
Fills the entire display with either on/off.
Parameters:
on
Sets on or off.
Implements daisy::OneBitGraphicsDisplay::Fill
function Height¶
Implements daisy::OneBitGraphicsDisplay::Height
function Init¶
function OledDisplay¶
function Update¶
Writes the current display buffer to the OLED device using SPI or I2C depending on how the object was initialized.
Implements daisy::OneBitGraphicsDisplay::Update
function UpdateFinished¶
Returns true if the Update has finished, used for chained DMA transfers
Implements daisy::OneBitGraphicsDisplay::UpdateFinished
function Width¶
Implements daisy::OneBitGraphicsDisplay::Width
function ~OledDisplay¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/disp/oled_display.h