renamed main file

This commit is contained in:
Rudis Muiznieks 2022-04-19 17:31:08 -05:00
parent dde7d10e4f
commit 9197a0cbaa
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
4 changed files with 18 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
node_modules/
bin/

16
bin/main.js Normal file
View File

@ -0,0 +1,16 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
var i2c_bus_1 = require("i2c-bus");
var oled_i2c_bus_1 = __importDefault(require("oled-i2c-bus"));
var i2cbus = (0, i2c_bus_1.openSync)(1);
var opts = {
width: 128,
height: 64,
address: 0x3C
};
var oled = new oled_i2c_bus_1["default"](i2cbus, opts);
oled.clearDisplay();
oled.invertDisplay(true);

View File

@ -1,6 +1,7 @@
{
"scripts": {
"build": "tsc --project tsconfig.json",
"clean": "rm -rf bin/*",
"build": "npm run clean && tsc --project tsconfig.json",
"start": "node bin/index.js"
},
"dependencies": {