From aab0c5afe27fe43ca1c2d62bb4b7f81231a2f068 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Thu, 3 Nov 2016 12:50:35 -0600 Subject: [PATCH] lcm1602, st7735: Fix up some Worder warnings Signed-off-by: Jon Trulson --- src/lcd/lcm1602.hpp | 8 ++++---- src/st7735/st7735.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lcd/lcm1602.hpp b/src/lcd/lcm1602.hpp index 3b86c0e7..e004db67 100644 --- a/src/lcd/lcm1602.hpp +++ b/src/lcd/lcm1602.hpp @@ -251,6 +251,10 @@ class Lcm1602 : public LCD uint8_t m_displayControl; uint8_t m_entryDisplayMode; + // Display size + uint8_t m_numColumns; + uint8_t m_numRows; + mraa::I2c* m_i2c_lcd_control; // gpio operation @@ -261,10 +265,6 @@ class Lcm1602 : public LCD mraa::Gpio* m_gpioD2; mraa::Gpio* m_gpioD3; - // Display size - uint8_t m_numColumns; - uint8_t m_numRows; - // Backlight uint8_t m_backlight; diff --git a/src/st7735/st7735.hpp b/src/st7735/st7735.hpp index 9f47eb30..084a16c2 100644 --- a/src/st7735/st7735.hpp +++ b/src/st7735/st7735.hpp @@ -627,11 +627,11 @@ class ST7735 : public GFX { private: uint8_t m_spiBuffer[32]; + mraa::Spi m_spi; mraa::Gpio m_csLCDPinCtx; mraa::Gpio m_cSDPinCtx; mraa::Gpio m_rSTPinCtx; mraa::Gpio m_rSPinCtx; - mraa::Spi m_spi; std::string m_name; };