-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.h
51 lines (40 loc) · 1011 Bytes
/
globals.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
#ifndef _GLOBALS_H
#define _GLOBALS_H
#include "CredentialManager.h"
//#include "WiFiManager.h"
#include "NTP.h"
#include "AXP192.h"
#include <BleKeyboard.h>
#include <Preferences.h>
#define LED G10
#include <WiFi.h>
#include <DNSServer.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <ArduinoJson.h>
extern String name;
extern String manufacturer;
extern DNSServer dnsServer;
extern AsyncWebServer server;
extern BleKeyboard bleKeyboard;
extern RTC_TimeTypeDef rtc_time;
extern RTC_DateTypeDef rtc_date;
extern Credential credentials[100];
extern NTP ntp;
extern Preferences preferences;
extern String secretCode;
extern unsigned long oldTimestamp;
extern unsigned long timer;
extern bool configModeEnabled;
extern unsigned long n_credentials;
extern Credential currentCredential;
extern uint8_t timezone;
extern bool rgbHudEnabled;
void startWiFi();
void stopWiFi();
void setupServer();
void loadCredentials();
void vibrate(int);
bool isCharging();
float getBatteryLevel();
#endif