SSD1306 OLED display driver
1.6.1
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
|
#include <tiler.h>
Static Public Member Functions | |
static void | refresh () |
static void | refresh (const NanoRect &rect) |
static void | refresh (const NanoPoint &point) |
static void | refresh (lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2) |
static void | drawCallback (TNanoEngineOnDraw callback) |
static bool | collision (NanoPoint &p, NanoRect &rect) |
Returns true if point is inside the rectangle area. Returns true if point is inside the rectangle area. More... | |
Static Public Attributes | |
static const uint8_t | NE_TILE_SIZE_BITS = B |
static const uint8_t | NE_TILE_WIDTH = W |
static const uint8_t | NE_TILE_HEIGHT = H |
static const uint8_t | NE_MAX_TILES_NUM = 16 >> (B - 3) |
static C | canvas |
Protected Member Functions | |
NanoEngineTiler () | |
Static Protected Member Functions | |
static void | displayBuffer () |
refreshes content on oled display. Refreshes content on oled display. Call it, if you want to update the screen. Engine will update only those areas, which are marked by refresh() methods. | |
static void | displayPopup (const char *msg) |
prints popup message over display content prints popup message over display content More... | |
Static Protected Attributes | |
static uint16_t | m_refreshFlags [NE_MAX_TILES_NUM] |
static TNanoEngineOnDraw | m_onDraw = nullptr |
This class template is responsible for holding and updating data about areas to be refreshed on LCD display. It accepts canvas class, tile width in pixels, tile height in pixels and number of bits in tile width as arguments for the template. For example, for 8x8 8-bit RGB tiles the reference should be NanoEngineTiler<NanoCanvas8,8,8,3>, and 3 bits means 3^2 = 8. If you need to have single big buffer, holding the whole content for monochrome display, you can specify something like this NanoEngineTiler<NanoCanvas1,128,64,7>.
|
inlineprotected |
|
inlinestatic |
|
staticprotected |
|
inlinestatic |
Sets user-defined draw callback. This callback will be called everytime, engine needs to update display content. If callback returns false, engine will not update those area. You always have a way to find out, which area is being updated by engine via NanoEngine8::canvas::getOffset() and NE_TILE_SIZE.
callback | - user-defined draw callback. |
|
inlinestatic |
|
inlinestatic |
Mark specified area in pixels for redrawing by NanoEngine. Actual update will take place in display() method.
|
inlinestatic |
Mark specified area in pixels for redrawing by NanoEngine. Actual update will take place in display() method.
|
inlinestatic |
Mark specified area in pixels for redrawing by NanoEngine. Actual update will take place in display() method.
|
static |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
static |
|
static |