29 #ifndef _NANO_ENGINE_CORE_H_ 30 #define _NANO_ENGINE_CORE_H_ 52 BUTTON_NONE = 0B00000000,
53 BUTTON_DOWN = 0B00000001,
54 BUTTON_LEFT = 0B00000010,
55 BUTTON_RIGHT = 0B00000100,
56 BUTTON_UP = 0B00001000,
57 BUTTON_A = 0B00010000,
58 BUTTON_B = 0B00100000,
78 static bool pressed(uint8_t buttons);
140 static uint8_t s_zkeypadPin;
141 static const uint8_t * s_gpioKeypadPins;
142 static uint8_t zkeypadButtons();
143 static uint8_t arduboyButtons();
144 static uint8_t gpioButtons();
213 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
242 static void notify(
const char *str);
247 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
253 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
256 m_lastFrameTs = millis();
258 m_cpuLoad = ((millis() - m_lastFrameTs)*100)/m_frameDurationMs;
261 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
265 if (C::BITS_PER_PIXEL > 1)
271 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
276 m_lastFrameTs = millis();
void ssd1306_setMode(lcd_mode_t mode)
Sets library display mode for direct draw functions.
void(* TLoopCallback)(void)
static TLoopCallback m_loop
static void loopCallback(TLoopCallback callback)
static void setFrameRate(uint8_t fps)
uint8_t(* TNanoEngineGetButtons)(void)
static uint32_t m_lastFrameTs
static uint8_t getFrameRate()
static uint8_t getCpuLoad()
static void displayBuffer()
refreshes content on oled display. Refreshes content on oled display. Call it, if you want to update ...
static void displayPopup(const char *msg)
prints popup message over display content prints popup message over display content ...
static void notify(const char *str)
shows notification to a user for 1 seconds Shows notification to a user for 1 seconds ...
static uint8_t m_frameDurationMs
static void display()
refreshes content on oled display. Refreshes content on oled display. Call it, if you want to update ...