jhd1313m1: modified destructor to clear and turn off lcd on delete

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2015-06-16 17:02:21 -07:00
parent 2fda38f7b1
commit 0dbfa06359

View File

@ -79,6 +79,8 @@ Jhd1313m1::Jhd1313m1(int bus, int lcdAddress, int rgbAddress)
Jhd1313m1::~Jhd1313m1()
{
clear();
setColor(0x00, 0x00, 0x00);
}
mraa_result_t