SSD1306 OLED display driver  1.4.6
This library is developed to control SSD1306/SSD1331 RGB i2c/spi OLED displays and spi PCD8544 LED display
Public Member Functions | List of all members
TinyBuffer Class Reference

#include <tiny_buffer.h>

Inheritance diagram for TinyBuffer:
NanoCanvas

Public Member Functions

 TinyBuffer (uint8_t w, uint8_t h, uint8_t *bytes)
 
- Public Member Functions inherited from NanoCanvas
 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 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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TinyBuffer()

TinyBuffer::TinyBuffer ( uint8_t  w,
uint8_t  h,
uint8_t *  bytes 
)
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.

Parameters
w- width
h- height
bytes- pointer to memory buffer to use

Definition at line 60 of file tiny_buffer.h.


The documentation for this class was generated from the following file: