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
|
#include <core.h>
Public Member Functions | |
void | setFrameRate (uint8_t fps) |
uint8_t | getFrameRate () |
uint8_t | getCpuLoad () |
bool | nextFrame () |
void | loopCallback (TLoopCallback callback) |
Protected Member Functions | |
void | beginCore () |
![]() | |
NanoEngineInputs () | |
Protected Attributes | |
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} |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
static void | resetButtonsCache () |
![]() | |
static TNanoEngineGetButtons | m_onButtons |
static uint8_t | m_lastButtons |
static uint8_t | m_newButtons |
Nano Engine Core class, contains generic frame-rate control functions
|
protected |
Initializes internal timestamps.
|
inline |
|
inline |
|
inline |
bool NanoEngineCore::nextFrame | ( | ) |
Returns true if it is time to render next frame
void NanoEngineCore::setFrameRate | ( | uint8_t | fps | ) |
Sets working frame-rate for the engine
fps | - frame rate to set between [1-255] |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |