This repository has been archived on 2022-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
zeropod/bin/menu/oled.js

27 lines
632 B
JavaScript
Raw Normal View History

2022-04-19 21:02:08 -05:00
"use strict";
exports.__esModule = true;
exports.OledPrinter = void 0;
/*const i2cbus = openSync(1);
const opts = {
width: 128,
height: 64,
address: 0x3C,
};
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();*/
var OledPrinter = /** @class */ (function () {
function OledPrinter(config) {
this._config = config;
}
OledPrinter.prototype.getSelection = function () {
return this._config[0];
};
return OledPrinter;
}());
exports.OledPrinter = OledPrinter;