turning off display

This commit is contained in:
Rudis Muiznieks 2022-04-19 17:46:54 -05:00
parent 6b5f3b0d2a
commit ad7c97d1fd
Signed by: rudism
GPG key ID: CABF2F86EF7884F9
2 changed files with 2 additions and 0 deletions

View file

@ -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();

View file

@ -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();