Skip to content

Commit

Permalink
small tweaks to "About Watchy"
Browse files Browse the repository at this point in the history
  • Loading branch information
sqfmi committed Jan 6, 2022
1 parent bf7425c commit c5b43d2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Watchy",
"version": "1.3.2",
"version": "1.3.3",
"description": "Watchy - An Open Source E-Paper Watch by SQFMI",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Watchy
version=1.3.2
version=1.3.3
author=SQFMI
maintainer=SQFMI
sentence=Watchy - An Open Source E-Paper Watch by SQFMI
Expand Down
13 changes: 4 additions & 9 deletions src/Watchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,12 @@ void Watchy::showAbout(){
display.setTextColor(GxEPD_WHITE);
display.setCursor(0, 20);

display.print("FW Ver: ");
display.println(Watchy_Version);
display.print("Lib Ver: v");
display.println(WATCHY_LIB_VER);

const char *rtc_hw_type;
switch (RTC.rtcType) {
case 0: rtc_hw_type = "DS3231"; break;
case 1: rtc_hw_type = "PCF8563"; break;
default: rtc_hw_type = "<unknown>";
}
const char *RTC_HW[3] = { "<UNKNOWN>", "DS3231", "PCF8563" };
display.print("RTC: ");
display.println(rtc_hw_type);
display.println(RTC_HW[RTC.rtcType]); //0 = UNKNOWN, 1 = DS3231, 2 = PCF8563

display.print("Batt: ");
float voltage = getBatteryVoltage();
Expand Down
2 changes: 0 additions & 2 deletions src/Watchy.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include "bma.h"
#include "config.h"

#define Watchy_Version "1.3.1"

typedef struct weatherData{
int8_t temperature;
int16_t weatherConditionCode;
Expand Down
4 changes: 2 additions & 2 deletions src/WatchyRTC.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "config.h"
#include "time.h"

#define DS3231 0
#define PCF8563 1
#define DS3231 1
#define PCF8563 2
#define RTC_DS_ADDR 0x68
#define RTC_PCF_ADDR 0x51
#define YEAR_OFFSET_DS 1970
Expand Down
3 changes: 2 additions & 1 deletion src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
#define SOFTWARE_VERSION_PATCH 0
#define HARDWARE_VERSION_MAJOR 1
#define HARDWARE_VERSION_MINOR 0

//Versioning
#define WATCHY_LIB_VER "1.3.3"
#endif

0 comments on commit c5b43d2

Please sign in to comment.