-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenus.h
74 lines (48 loc) · 1.56 KB
/
Menus.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#pragma once
// #include "Libraries/UTFT/UTFT.h"
// #include "Libraries/URTouch/URTouch.h"
#include "platform.h"
#undef min
#undef max
#include "functional"
#include "SPI.h"
#include "Libraries/Adafruit_GFX/Adafruit_GFX.h"
#include "Libraries/Waveshare_ILI9486/Waveshare_ILI9486.h"
extern uint8_t SmallFont[]; // подключаем маленький шрифт
extern uint8_t BigFont[]; // подключаем большой шрифт
extern uint8_t SevenSegNumFont[]; // подключаем цифровой шрифт
static Waveshare_ILI9486 GLCD;
// static URTouch TOUCH(6, 5, 4, 3, 2);
#include "Pages/Variables.h"
#include "UI/UISettings.hpp"
#include "Utilites/ArraysTools.h"
#include "Utilites/Math.hpp"
#include "Utilites/Timer.h"
#include "Utilites/TouchEmulator.hpp"
static TouchEmulator TOUCH = TouchEmulator();
#include "UI/Rect.h"
#include "UI/Vector2D.h"
#include "UI/Text.h"
#include "UI/Colors.h"
#include "UI/UIObject.h"
#include "UI/UIPanel.hpp"
#include "UI/UIButton.hpp"
#include "UI/UITextPanel.hpp"
#include "UI/UICheckBox.h"
#include "CoilWinding/CoilWinding.hpp"
#include "Pages/Page.h"
#include "Pages/PagesManager.h"
#include "Pages/PagesList.h"
static void INIT() {
Serial.begin(9600);
Serial.println(TUTORIAL);
SPI.begin();
GLCD.begin();
GLCD.resetTsConfigData();
GLCD.setRotation(1);
TOUCH.InitTouch();
TOUCH.setPrecision(0);
PAGES::Init(PAGES_LIST);
PAGES::ChangePageFormName("MainPage");
CoilWinding::Init();
}