mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-23 11:05:00 +02:00
Simplify the OLED initialisation.
This commit is contained in:
+2
-6
@@ -313,11 +313,9 @@ m_oledBuffer(NULL)
|
||||
clear();
|
||||
}
|
||||
|
||||
bool CI2COLED::init()
|
||||
void CI2COLED::init()
|
||||
{
|
||||
bool ret = m_i2c.init();
|
||||
if (!ret)
|
||||
return false;
|
||||
m_i2c.init();
|
||||
|
||||
// Initialise the VG-6432TSWEG02 OLED display
|
||||
sendCommand(0xAEU); /*display off*/
|
||||
@@ -352,8 +350,6 @@ bool CI2COLED::init()
|
||||
sendCommand(0x8DU, 0x10U); /*set charge pump enable*/
|
||||
|
||||
sendCommand(0xAFU); /*display ON*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void CI2COLED::setMode(int state)
|
||||
|
||||
Reference in New Issue
Block a user