WIP refactoring

This commit is contained in:
Lewis Jackson 2023-06-01 03:07:52 +03:00
parent 1b843ce4b4
commit 90c66be515
19 changed files with 413 additions and 162 deletions

View file

@ -13,6 +13,8 @@
#define ACC_INT_2_PIN 12
#define VIB_MOTOR_PIN 13
#define RTC_INT_PIN 27
#define RTC_PCF_ADDR 0x51
#define YEAR_OFFSET_PCF 2000
#define MENU_BTN_MASK GPIO_SEL_26
#define BACK_BTN_MASK GPIO_SEL_25
@ -24,11 +26,22 @@
#define DISPLAY_WIDTH 200
#define DISPLAY_HEIGHT 200
#define WIFI_SSID "<ssid>"
#define WIFI_PASS "<pass>"
#define TZ_OFFSET 3600 * 3
#define EEPROM_LOCATION_MAGIC 0
#define EEPROM_LOCATION_VERSION 2
#define EEPROM_LOCATION_TZ_OFFSET 4
#define EEPROM_MAGIC1 0xf0
#define EEPROM_MAGIC2 0x0d
#define EEPROM_VERSION 1
#include "secrets.h"
#if !defined(WIFI_SSID) || !defined(WIFI_PASS)
#error "Please define WIFI_SSID and WIFI_PASS in secrets.h"
#endif
#define DEFAULT_TZ_OFFSET 3600 * 3
#define NTP_SERVER "pool.ntp.org"
#define UPDATE_INTERVAL 60 // seconds
#define WAKE_ON_ACCEL_EVENTS false // useful if saving battery by not updating every minute
#define WAKE_ON_ACCEL_EVENTS false // useful if saving battery by not updating every minute