From ad7c97d1fd922077f79346a7a8fff5a7e1447a55 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Tue, 19 Apr 2022 17:46:54 -0500 Subject: [PATCH] turning off display --- bin/main.js | 1 + src/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/main.js b/bin/main.js index 8c052a4..8534e24 100644 --- a/bin/main.js +++ b/bin/main.js @@ -16,3 +16,4 @@ var oled = new oled_i2c_bus_1["default"](i2cbus, opts); oled.clearDisplay(); oled.setCursor(1, 1); oled.writeString(oled_font_5x7_1["default"], 1, "This is a string I am writing to the screen", 1, true); +oled.turnOffDisplay(); diff --git a/src/main.ts b/src/main.ts index ddbf070..969dd57 100644 --- a/src/main.ts +++ b/src/main.ts @@ -14,3 +14,4 @@ const oled = new Oled(i2cbus, opts); oled.clearDisplay(); oled.setCursor(1, 1); oled.writeString(font, 1, "This is a string I am writing to the screen", 1, true); +oled.turnOffDisplay();