From 7016673d4b4a7d7c7f66612aa6a269397bbc9487 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Fri, 13 Nov 2015 13:09:31 -0600 Subject: update generic display functions in Layout - update LayoutStartup accordingly --- Layout/Layout.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Layout/Layout.h') diff --git a/Layout/Layout.h b/Layout/Layout.h index 5b25458..5e7ece2 100644 --- a/Layout/Layout.h +++ b/Layout/Layout.h @@ -42,11 +42,14 @@ class Layout { void clear(); void startUpdate(); void endUpdate(); - bool writeField(uint8_t col, uint8_t row, std::string field, bool apply = false); - bool writeField(uint8_t col, uint8_t row, const char* field, size_t size, bool apply = false); - bool writeImage(uint8_t col, uint8_t row, const uint8_t* bmp, bool apply = false); + bool writeLabel(const Label& label); + bool writeField(const Field& field, const std::string& value, bool apply = false); + bool writeImage(const Image& image, bool apply = false); private: + bool writeText(uint8_t col, uint8_t row, const char* value, size_t size); + bool writeBmp(uint8_t col, uint8_t row, const uint8_t* bmp); + DOGS102* _lcd; }; -- cgit v1.2.3