27 lines
632 B
JavaScript
27 lines
632 B
JavaScript
|
"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;
|