-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobals.cpp
32 lines (27 loc) · 1.96 KB
/
globals.cpp
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
/* ********************************************************************************************** */
/* */
/* Smart Watch Firmware ::::::::: ::: */
/* globals.cpp :+: :+: :+: :+: */
/* +:+ +:+ +:+ +:+ */
/* By: Roman Alexandrov <r.aleksandroff@gmail.com> +#++:++#: +#++:++#++: */
/* +#+ +#+ +#+ +#+ */
/* Created: 2023/10/31 14:49:16 #+# #+# #+# #+# */
/* Updated: 2023/11/12 13:48:41 ### ### ### ### */
/* */
/* */
/* Global variables and objects initialization */
/* */
/* ********************************************************************************************** */
#include "globals.h"
Encoder myEnc(9, 10);
Adafruit_SSD1306 display(128, 64, &Wire, 1); // OLED display – SCREEN_WIDTH, SCREEN_HEIGHT, I2C interface, OLED_RESET
ADC_MODE(ADC_VCC); // battery charge measuring congig
ESP8266WiFiMulti wifiMulti;
WiFiClient client;
rtcManagementStruc rtcMng;
rtcStore rtcValues;
unsigned short g_icon_cycle = 1;
short x = 0;
short y = 0;
float lat = 50.0596696; // default latitude — Prague
float lon = 14.4656239; // default longitude — Prague