robotois-digital-io
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "robotois-digital-io", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Node Library to communicate and control the robotois button module", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
const IoModule = require('bindings')('DigitalIOModule'); | ||
// console.log(IoModule); | ||
function pressed() { | ||
@@ -44,3 +42,3 @@ const value = this.io.read(); | ||
const obj = Object.create({ | ||
io: new IoModule.DigitalIOWrapper(ioPin), | ||
io: new IoModule(ioPin), | ||
addFunction, | ||
@@ -61,3 +59,3 @@ functions: [], | ||
const test = () => { | ||
const but = init(17); | ||
const but = init(16); | ||
but.addFunction(() => true, (secs, ms) => { | ||
@@ -64,0 +62,0 @@ console.log(`(${secs}, ${ms}) => [SuperToi] -> Stop all tasks`); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
180878
146