SSD1306 OLED display driver
1.6.1
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
|
#include <tiny_buffer.h>
Public Member Functions | |
TinyBuffer (uint8_t w, uint8_t h, uint8_t *bytes) | |
![]() | |
NanoCanvas (uint8_t w, uint8_t h, uint8_t *bytes) | |
void | drawPixel (uint8_t x, uint8_t y) __attribute__((deprecated)) |
void | putPixel (uint8_t x, uint8_t y) |
void | drawRect (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2) |
void | drawHLine (uint8_t x1, uint8_t y1, uint8_t x2) |
void | drawVLine (uint8_t x1, uint8_t y1, uint8_t y2) |
void | fillRect (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t templ) |
void | clear () |
void | char_f6x8 (uint8_t x, uint8_t y, const char ch[], EFontStyle style=STYLE_NORMAL) __attribute__((deprecated)) |
void | charF6x8 (uint8_t x, uint8_t y, const char ch[], EFontStyle style=STYLE_NORMAL) |
void | charF12x16 (uint8_t x, uint8_t y, const char ch[], EFontStyle style=STYLE_NORMAL) |
void | printFixed (uint8_t xpos, uint8_t y, const char ch[], EFontStyle style=STYLE_NORMAL) |
void | printFixed2x (uint8_t xpos, uint8_t y, const char ch[], EFontStyle style=STYLE_NORMAL) |
void | drawSpritePgm (uint8_t x, uint8_t y, const uint8_t sprite[]) |
void | drawBitmap (uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *buf) |
void | drawSprite (uint8_t x, uint8_t y, const uint8_t sprite[]) |
void | drawSprite (SPRITE *sprite) |
uint8_t | width () const |
uint8_t | height () const |
uint8_t * | buffer () const |
void | invert () |
void | flipH () |
void | blt (uint8_t x, uint8_t y) |
TinyBuffer represents object to work with double buffered display. Easy to use: TinyBuffer lcd( SSD1306_128x64 ); void setup() { lcd.beginI2C();
lcd.clear(); lcd.charF6x8(0,0,"Hello"); }
Definition at line 47 of file tiny_buffer.h.
|
inline |
Creates new buffer object. Width can be of any value. Height should be divided by 8. Memory buffer must be not less than w * h / 8.
w | - width |
h | - height |
bytes | - pointer to memory buffer to use |
Definition at line 60 of file tiny_buffer.h.