You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

58 lines
1.3 KiB

//
// Created by julia on 12.06.21.
//
#ifndef PAIN_WATCHY_JULIA_H
#define PAIN_WATCHY_JULIA_H
#include <Watchy.h>
#include "icons.h"
#include <Fonts/FreeSans18pt7b.h>
#include <Fonts/FreeSans12pt7b.h>
#include "secrets.h"
#define ADAPTIVE_DARKMODE true
#define SIMPLE_DARKMODE true // doesn't matter if ADAPTIVE_DARKMODE is true
#define STATUSBAR_SPACE 4
#define STATUSBAR_HEIGHT 30
#define BATTERY_SEGMENT_WIDTH 9
#define BATTERY_SEGMENT_HEIGHT 4
#define BATTERY_SEGMENT_GAP 1
#define BATTERY_THRESHOLD_3 4.1
#define BATTERY_THRESHOLD_2 3.95
#define BATTERY_THRESHOLD_1 3.8
#define GOTIFY_SERVER_URL "https://push.julia.network"
#define GOTIFY_CLIENT_TOKEN SECRET_GOTIFY_TOKEN
#define GOTIFY_PRIORITY_APP_ID 10
#define NTP_ENABLE true
#define NTP_SYNC_INTERVAL 30 // minutes
#define NTP_SERVER "pool.ntp.org"
#define TIME_ZONE "Europe/Berlin"
class WatchyJulia : public Watchy {
public:
WatchyJulia();
void drawWatchFace() override;
void drawTime();
void drawDate();
void drawStatusBar();
void preDraw();
void postDraw();
// void getNotifs();
private:
int16_t drawBattery(int16_t x, bool reverseSpace);
int16_t drawSBIcon(const icon &i, int16_t x, bool reverseSpace);
void setAdaptiveDarkmode();
};
//extern RTC_DATA_ATTR bool UNREAD_NOTIFS;
#endif //PAIN_WATCHY_JULIA_H