29 #ifndef _NANO_ENGINE_CORE_H_ 30 #define _NANO_ENGINE_CORE_H_ 47 BUTTON_NONE = 0B00000000,
48 BUTTON_DOWN = 0B00000001,
49 BUTTON_LEFT = 0B00000010,
50 BUTTON_RIGHT = 0B00000100,
51 BUTTON_UP = 0B00001000,
52 BUTTON_A = 0B00010000,
53 BUTTON_B = 0B00100000,
73 static bool pressed(uint8_t buttons);
116 static uint8_t s_zkeypadPin;
117 static uint8_t zkeypadButtons();
118 static uint8_t arduboyButtons();
144 static void setFrameRate(uint8_t fps);
162 static bool nextFrame();
187 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
203 static void display();
210 static void notify(
const char *str);
215 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
221 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
229 template<
class C, u
int8_t W, u
int8_t H, u
int8_t B>
void(* TLoopCallback)(void)
static TLoopCallback m_loop
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 ...