From 1efaf9a04e53d0d0d4d72224860d1f412910c19a Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sat, 19 Jan 2019 17:52:46 +0100 Subject: [PATCH] board TTGO T-Fox added --- platformio.ini | 6 +++++- src/hal/ttgofox.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 01b8b602..6eafff31 100644 --- a/platformio.ini +++ b/platformio.ini @@ -30,7 +30,7 @@ description = Paxcounter is a proof-of-concept ESP32 device for metering passeng [common] ; for release_version use max. 10 chars total, use any decimal format like "a.b.c" -release_version = 1.7.11 +release_version = 1.7.12 ; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running! ; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose debug_level = 3 @@ -50,6 +50,8 @@ lib_deps_rgbled = SmartLeds@>=1.1.3 lib_deps_gps = TinyGPSPlus@>=1.0.2 +lib_deps_rtc = + RTC@^2.3.0 lib_deps_basic = ArduinoJson@^5.13.1 Time@>=1.5 @@ -59,6 +61,7 @@ lib_deps_all = ${common.lib_deps_display} ${common.lib_deps_rgbled} ${common.lib_deps_gps} + ${common.lib_deps_rtc} build_flags_basic = -include "src/hal/${PIOENV}.h" -include "src/paxcounter.conf" @@ -212,6 +215,7 @@ lib_deps = ${common.lib_deps_basic} ${common.lib_deps_lora} ${common.lib_deps_display} + ${common.lib_deps_rtc} build_flags = ${common.build_flags_basic} upload_protocol = ${common.upload_protocol} diff --git a/src/hal/ttgofox.h b/src/hal/ttgofox.h index 8f0a6d2d..18a8b04f 100644 --- a/src/hal/ttgofox.h +++ b/src/hal/ttgofox.h @@ -20,6 +20,9 @@ #define MY_OLED_SCL (22) #define MY_OLED_RST U8X8_PIN_NONE +// Pins for on board DS3231 RTC chip +#define HAS_RTC MY_OLED_SDA, MY_OLED_SCL // SDA, SCL + // Pins for LORA chip SPI interface, reset line and interrupt lines #define LORA_SCK (5) #define LORA_CS (18)