SSD1306 OLED display driver
1.8.2
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
|
#include <adafruit.h>
Public Member Functions | |
AdafruitCanvasOps (lcduint_t w, lcduint_t h, uint8_t *buffer) | |
void | drawPixel (int16_t x, int16_t y, uint16_t color) override |
void | setOffset (lcdint_t ox, lcdint_t oy) |
Public Attributes | |
NanoPoint | offset |
Static Public Attributes | |
static const uint8_t | BITS_PER_PIXEL = BPP |
Protected Attributes | |
uint8_t * | m_buffer |
This is basic template class for all canvas classes, based on Adafruit_GFX. This base class provides functionality compatible with native NanoCanvas implementation of ssd1306 library
Definition at line 71 of file adafruit.h.
|
inline |
Initializes canvas, based on Adafruit GFX.
w | width of canvas |
h | height of canvas area |
buffer | buffer to use for pixels |
Definition at line 88 of file adafruit.h.
|
override |
draw single pixel in canvas area
x | x position |
y | y position |
color | color of pixel: for monochrome it can be 0 (black), 1 (white), 2 (invert) |
|
inline |
Sets offset
ox | - X offset in pixels |
oy | - Y offset in pixels |
Definition at line 110 of file adafruit.h.
|
static |
number of bits per single pixel in buffer
Definition at line 78 of file adafruit.h.
|
protected |
pixels buffer
Definition at line 110 of file adafruit.h.
NanoPoint AdafruitCanvasOps< BPP >::offset |
Fixed offset for all operation of NanoCanvasOps in pixels.
Definition at line 75 of file adafruit.h.