SSD1306 OLED display driver  1.6.99
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
Classes | Macros
nano_engine.h File Reference
#include "nano_engine/canvas.h"
#include "nano_engine/adafruit.h"
#include "nano_engine/tiler.h"
#include "nano_engine/core.h"

Go to the source code of this file.

Classes

class  NanoEngine1_8
 

Macros

#define NanoEngine8   NanoEngine<TILE_8x8_RGB8>
 
#define NanoEngine1   NanoEngine<TILE_8x8_MONO>
 
#define NanoEngine16   NanoEngine<TILE_8x8_RGB16>
 

Detailed Description

Small graphics engine, based on SSD1331 functions

Definition in file nano_engine.h.

Macro Definition Documentation

#define NanoEngine1   NanoEngine<TILE_8x8_MONO>

NanoEngine1 is simple graphics engine, that implements double buffering work for the systems with very low resources. That is, memory buffer for SSD1306 oled display needs at least 128x64/8 bytes (1024 bytes), and this is inacceptable for microcontrollers like attiny85 (it has only 512B of RAM). So, to workaround issue with low resources, NanoEngine1 uses small tile buffer (NE_TILE_SIZE x NE_TILE_SIZE) and updates only part of oled screen at once. It makes system slow, but it is possible to run NanoEngine1 on simple controllers. If tile size is 32x32, then 128x64 oled display is devided into 8 tiles:
[0,0] [1,0] [2,0], [3,0]
[0,1] [1,1] [2,1], [3,1]
In your application you can choose, if you want to refresh whole screen (refresh()), or you need to refresh only part of oled display.

Warning
Works only in SSD1306 compatible mode

Definition at line 72 of file nano_engine.h.

#define NanoEngine16   NanoEngine<TILE_8x8_RGB16>

NanoEngine16 is simple graphics engine, that implements double buffering work for the systems with very low resources. That is, memory buffer for SSD1351 oled display needs at least 128x128x2 bytes (32768 bytes), and this is inacceptable for microcontrollers like atmega328p (it has only 2KiB of RAM). So, to workaround issue with low resources, NanoEngine16 uses small tile buffer (NE_TILE_SIZE x NE_TILE_SIZE) and updates only part of oled screen at once. It makes system slow, but it is possible to run NanoEngine16 on simple controllers. If tile size is 16x16, then 128x128 oled display is devided into 64 tiles:
[0,0] [1,0] [2,0] [3,0] [4,0] [5,0] [6,0] [7,0]
[0,1] [1,1] [2,1] [3,1] [4,1] [5,1] [6,1] [7,1]
etc.
In your application you can choose, if you want to refresh whole screen (refresh()), or you need to refresh only part of oled display.

Definition at line 114 of file nano_engine.h.

#define NanoEngine8   NanoEngine<TILE_8x8_RGB8>

NanoEngine8 is simple graphics engine, that implements double buffering work for the systems with very low resources. That is, memory buffer for SSD1331 oled display needs at least 96x64x1 bytes (6144 bytes), and this is inacceptable for microcontrollers like atmega328p (it has only 2KiB of RAM). So, to workaround issue with low resources, NanoEngine8 uses small tile buffer (NE_TILE_SIZE x NE_TILE_SIZE) and updates only part of oled screen at once. It makes system slow, but it is possible to run NanoEngine8 on simple controllers. If tile size is 32x32, then 96x64 oled display is devided into 6 tiles:
[0,0] [1,0] [2,0]
[0,1] [1,1] [2,1]
In your application you can choose, if you want to refresh whole screen (refresh()), or you need to refresh only part of oled display.

Definition at line 54 of file nano_engine.h.