From 352e0df7d800b033ce24ad1022461f5d1908da93 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 14 Mar 2019 14:44:18 -0400 Subject: cleanup, display screen abstraction --- source/rtc.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/rtc.hpp') diff --git a/source/rtc.hpp b/source/rtc.hpp index 7f64100..12dade9 100644 --- a/source/rtc.hpp +++ b/source/rtc.hpp @@ -1,10 +1,13 @@ #include +#include "sharp.hpp" class RTC { private: static nrf_drv_rtc_t rtc; static unsigned int rtcCount; + static char message[16]; + public: static void begin(void); @@ -16,6 +19,12 @@ public: rtcCount = t; } + static void showTime(Display& display); + + inline static void setMessage(const char *s) { + strncpy(message, s, 16); + } + private: static void handler(nrf_drv_rtc_int_type_t type); }; -- cgit v1.2.3