daisy::OledDisplay¶
#include <oled_display.h>
Inherits from daisy::OneBitGraphicsDisplayImpl< OledDisplay< DisplayDriver > >, daisy::OneBitGraphicsDisplay
Public Classes¶
Name | |
---|---|
struct | Config |
Public Functions¶
Name | |
---|---|
OledDisplay() | |
virtual | ~OledDisplay() |
void | Init(Config config) |
virtual uint16_t | Height() const override |
virtual uint16_t | Width() const override |
virtual void | Fill(bool on) override |
virtual void | DrawPixel(uint_fast8_t x, uint_fast8_t y, bool on) override |
virtual void | Update() override |
Additional inherited members¶
Public Functions inherited from daisy::OneBitGraphicsDisplayImpl< OledDisplay< DisplayDriver > >
Name | |
---|---|
OneBitGraphicsDisplayImpl() | |
virtual | ~OneBitGraphicsDisplayImpl() |
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 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 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 |
Public Functions inherited from daisy::OneBitGraphicsDisplay
Name | |
---|---|
OneBitGraphicsDisplay() | |
virtual | ~OneBitGraphicsDisplay() |
Rectangle | GetBounds() const |
size_t | CurrentX() |
size_t | CurrentY() |
virtual void | DrawLine(uint_fast8_t x1, uint_fast8_t y1, uint_fast8_t x2, uint_fast8_t y2, bool on) =0 |
virtual void | DrawRect(uint_fast8_t x1, uint_fast8_t y1, uint_fast8_t x2, uint_fast8_t y2, bool on, bool fill =false) =0 |
void | DrawRect(const Rectangle & rect, bool on, bool fill =false) |
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) =0 |
void | DrawCircle(uint_fast8_t x, uint_fast8_t y, uint_fast8_t radius, bool on) |
virtual char | WriteChar(char ch, FontDef font, bool on) =0 |
virtual char | WriteString(const char * str, FontDef font, bool on) =0 |
virtual Rectangle | WriteStringAligned(const char * str, const FontDef & font, Rectangle boundingBox, Alignment alignment, bool on) =0 |
void | SetCursor(uint16_t x, uint16_t y) |
Protected Attributes inherited from daisy::OneBitGraphicsDisplay
Name | |
---|---|
uint16_t | currentX_ |
uint16_t | currentY_ |
Detailed Description¶
This class is for drawing to a monochrome OLED display.
Public Functions Documentation¶
function OledDisplay¶
function ~OledDisplay¶
function Init¶
function Height¶
Reimplements: daisy::OneBitGraphicsDisplay::Height
function Width¶
Reimplements: daisy::OneBitGraphicsDisplay::Width
function Fill¶
Parameters:
- on Sets on or off.
Reimplements: daisy::OneBitGraphicsDisplay::Fill
Fills the entire display with either on/off.
function DrawPixel¶
Parameters:
- x x Coordinate
- y y coordinate
- on on or off
Reimplements: daisy::OneBitGraphicsDisplay::DrawPixel
Sets the pixel at the specified coordinate to be on/off.
function Update¶
Reimplements: daisy::OneBitGraphicsDisplay::Update
Writes the current display buffer to the OLED device using SPI or I2C depending on how the object was initialized.
---¶
Updated on 2024-01-03 at 19:41:01 +0000