aboutsummaryrefslogtreecommitdiffstats
path: root/api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api.cpp')
-rw-r--r--api.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/api.cpp b/api.cpp
index 2d63506..9950bf3 100644
--- a/api.cpp
+++ b/api.cpp
@@ -22,6 +22,10 @@ void Api::init_display() {
//oledSetTextWrap(&oled, true);
}
+void Api::display_power(bool mode) {
+ oledPower(&m_oled, mode);
+}
+
int Api::display_write_string(int iScrollX, int x, int y, char *szMsg, int iSize, int bInvert, int bRender) {
return oledWriteString(&m_oled, iScrollX, x, y, szMsg, iSize, bInvert, bRender);
}