|
@@ -70,6 +70,20 @@ Jhd1313m1::~Jhd1313m1() {
|
70
|
70
|
|
71
|
71
|
}
|
72
|
72
|
|
|
73
|
+mraa_result_t
|
|
74
|
+Jhd1313m1::setColor(uint8_t r, uint8_t g, uint8_t b)
|
|
75
|
+{
|
|
76
|
+ i2cReg (m_i2c_lcd_rgb, m_rgb_address, 0, 0);
|
|
77
|
+ i2cReg (m_i2c_lcd_rgb, m_rgb_address, 1, 0);
|
|
78
|
+ i2cReg (m_i2c_lcd_rgb, m_rgb_address, 0x08, 0xAA);
|
|
79
|
+
|
|
80
|
+ i2cReg (m_i2c_lcd_rgb, m_rgb_address, 0x04, r);
|
|
81
|
+ i2cReg (m_i2c_lcd_rgb, m_rgb_address, 0x03, g);
|
|
82
|
+ i2cReg (m_i2c_lcd_rgb, m_rgb_address, 0x02, b);
|
|
83
|
+
|
|
84
|
+ return MRAA_SUCCESS;
|
|
85
|
+}
|
|
86
|
+
|
73
|
87
|
/*
|
74
|
88
|
* **************
|
75
|
89
|
* virtual area
|