-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXUI_Engine.h
More file actions
46 lines (40 loc) · 960 Bytes
/
Copy pathXUI_Engine.h
File metadata and controls
46 lines (40 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <string>
#include <vector>
using std::string;
using std::vector;
#include "Arduino.h"
#include "OneButton.h"
#include "XUI_Config.h"
#include "XUI_List.h"
#include "XUI_Display.h"
#include "XUI_Screen.h"
#include "XUI_ScreenMenu.h"
#include "XUI_ScreenScan.h"
#include "XUI_ScreenFonts.h"
#define BTTN_UP D5
#define BTTN_DOWN D6
#define BTTN_LEFT D3
#define BTTN_RIGHT D7
class XUI_Engine {
public:
XUI_Engine(XUI_Display* xuiDisplay, XUI_Screen* homeScreen);
void run();
void nav(XUI_Screen* toScreen);
XUI_Display* xuiDisplay;
XUI_Screen* xuiScreen;
private:
XUI_Screen* xuiHome;
XUI_Screen* xuiPrevScreen;
OneButton* bttnUp;
OneButton* bttnDown;
OneButton* bttnLeft;
OneButton* bttnRight;
void bttnUp_Click();
void bttnDown_Click();
void bttnLeft_Click();
void bttnRight_Click();
float fps;
unsigned long millis_time;
unsigned long millis_time_last;
};