Build target is now ES6, Fixed examples

parent efa5dcee
Pipeline #347 passed with stages
in 59 seconds
/*
* Node.js module ina226
*
* Copyright (c) 2017 Peter Müller <peter@crycode.de> (https://crycode.de/)
* Copyright (c) 2017-2020 Peter Müller <peter@crycode.de> (https://crycode.de/)
*
* Node.js module to read values from the INA226 bi-directional current and power monitor.
*
......@@ -14,8 +14,8 @@
import {INA226, CONFIGURATION_REGISTER} from '../';
// Import the i2c-bus module and open the bus
import {I2cBus, openSync as I2cBusOpenSync} from 'i2c-bus';
const i2cBus:I2cBus = I2cBusOpenSync(1);
import {I2CBus, openSync as I2cBusOpenSync} from 'i2c-bus';
const i2cBus:I2CBus = I2cBusOpenSync(1);
// Define the address of the INA226 and the shunt resistance value
......
......@@ -2,8 +2,8 @@
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"target": "es5",
"lib": ["es5", "es6"],
"target": "es6",
"lib": ["es6"],
"noImplicitAny": false,
"removeComments": false,
"experimentalDecorators": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment