LCDGFX LCD display driver  1.1.5
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
NanoEngine< C, D > Class Template Reference

#include <core.h>

Inheritance diagram for NanoEngine< C, D >:
Collaboration diagram for NanoEngine< C, D >:

Public Member Functions

 NanoEngine (D &display)
 
void display ()
 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.
 
void begin ()
 
void notify (const char *str)
 shows notification to a user for 1 seconds Shows notification to a user for 1 seconds More...
 
- Public Member Functions inherited from NanoEngineCore
void setFrameRate (uint8_t fps)
 
uint8_t getFrameRate ()
 
uint8_t getCpuLoad ()
 
bool nextFrame ()
 
void loopCallback (TLoopCallback callback)
 
- Public Member Functions inherited from NanoEngineTiler< C, D >
void refresh ()
 
void refresh (const NanoRect &rect)
 
void refresh (const NanoPoint &point) __attribute__((noinline))
 
void refresh (lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2) __attribute__((noinline))
 
void refreshWorld (const NanoRect &rect)
 
void refreshWorld (lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2) __attribute__((noinline))
 
void refreshWorld (const NanoPoint &point)
 
void localCoordinates ()
 
void worldCoordinates ()
 
void moveTo (const NanoPoint &position)
 
void moveToAndRefresh (const NanoPoint &position)
 
const NanoPointgetPosition () const
 
void drawCallback (TNanoEngineOnDraw callback)
 
bool collision (const NanoPoint &p, const NanoRect &rect)
 Returns true if point is inside the rectangle area. Returns true if point is inside the rectangle area. More...
 
void insert (NanoEngineObject< TilerT > &object) __attribute__((noinline))
 
void remove (NanoEngineObject< TilerT > &object) __attribute__((noinline))
 
void update () __attribute__((noinline))
 
C & getCanvas ()
 
D & getDisplay ()
 

Additional Inherited Members

- Public Types inherited from NanoEngineTiler< C, D >
typedef NanoEngineTiler< C, D > TilerT
 
- Static Public Member Functions inherited from NanoEngineInputs
static bool pressed (uint8_t buttons)
 Returns true if button or specific combination of buttons is pressed. Returns true if button or specific combination of buttons is pressed. More...
 
static bool notPressed (uint8_t buttons)
 Returns true if button or specific combination of buttons is not pressed. Returns true if button or specific combination of buttons is not pressed. More...
 
static bool clicked (uint8_t buttons)
 Returns true if button was clicked and released. Returns true if button was clicked and released. More...
 
static uint8_t buttonsState ()
 Returns bits of all pressed buttons. More...
 
static void connectCustomKeys (TNanoEngineGetButtons handler)
 
static void connectZKeypad (uint8_t analogPin)
 Enables engine to use Z-Keypad. Enables engine to use Z-Keypad. Please refer to arkanoid example for schematics. More...
 
static void connectArduboyKeys ()
 Configures NanoEngine8 to use Arduboy keys layout. Configures NanoEngine8 to use Arduboy keys layout.
 
static void connectKY40encoder (uint8_t pina_clk, uint8_t pinb_dt, int8_t pinc_sw=-1)
 Configures NanoEngine to use KY40 Rotary Encoder. Configures NanoEngine to use KY40 Rotary Encoder. More...
 
static void connectGpioKeypad (const uint8_t *gpioKeys)
 Enables engine to use GPIO keys. More...
 
static void connectWioKeypad ()
 Connects Wio keys to NanoEngine. More...
 
- Protected Member Functions inherited from NanoEngineCore
void beginCore ()
 
- Protected Member Functions inherited from NanoEngineInputs
 NanoEngineInputs ()
 
- Protected Member Functions inherited from NanoEngineTiler< C, D >
 NanoEngineTiler (D &display)
 
void displayBuffer () __attribute__((noinline))
 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.
 
void displayPopup (const char *msg)
 prints popup message over display content prints popup message over display content More...
 
- Static Protected Member Functions inherited from NanoEngineInputs
static void resetButtonsCache ()
 
- Protected Attributes inherited from NanoEngineCore
uint16_t m_frameDurationMs = 1000 / ENGINE_DEFAULT_FPS
 
uint8_t m_fps = ENGINE_DEFAULT_FPS
 
uint8_t m_cpuLoad = 0
 
uint32_t m_lastFrameTs = 0
 
TLoopCallback m_loop = {nullptr}
 
- Protected Attributes inherited from NanoEngineTiler< C, D >
D & m_display
 
TNanoEngineOnDraw m_onDraw
 
uint16_t m_refreshFlags [NE_MAX_TILE_ROWS]
 
- Static Protected Attributes inherited from NanoEngineInputs
static TNanoEngineGetButtons m_onButtons
 
static uint8_t m_lastButtons
 
static uint8_t m_newButtons
 

Detailed Description

template<class C, class D>
class NanoEngine< C, D >

Base class for NanoEngine.

Definition at line 268 of file core.h.

Constructor & Destructor Documentation

◆ NanoEngine()

template<class C , class D>
NanoEngine< C, D >::NanoEngine ( D &  display)
explicit

Initializes Nano Engine Base object.

Definition at line 301 of file core.h.

Member Function Documentation

◆ begin()

template<class C , class D >
void NanoEngine< C, D >::begin ( )

Initializes internal timestamps, engine state, and switches oled display to required mode (see ssd1306_setMode()).

Definition at line 315 of file core.h.

◆ notify()

template<class C , class D >
void NanoEngine< C, D >::notify ( const char *  str)

shows notification to a user for 1 seconds Shows notification to a user for 1 seconds

Parameters
str- pointer to null-terminated string to show

Definition at line 320 of file core.h.


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