renamed main file
This commit is contained in:
parent
dde7d10e4f
commit
9197a0cbaa
|
@ -1,2 +1 @@
|
|||
node_modules/
|
||||
bin/
|
||||
|
|
|
@ -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);
|
|
@ -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": {
|
||||
|
|
Reference in New Issue