From 4d66c5c07a088a23d0553eeef7cbfe6b842b087c Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Thu, 9 Aug 2018 08:01:04 -0400 Subject: [PATCH] Placeholder for re-write of intval lib using rpio. Potential speed increase on io functions. --- lib/intval_rpio/index.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/intval_rpio/index.js diff --git a/lib/intval_rpio/index.js b/lib/intval_rpio/index.js new file mode 100644 index 0000000..ce95be7 --- /dev/null +++ b/lib/intval_rpio/index.js @@ -0,0 +1,37 @@ +'use strict' + +//Optimized rpio-writebuf re-write of the intval module +//https://gist.github.com/jperkin/e1f0ce996c83ccf2bca9 + +const db = require('../db') +const log = require('../log')('intval3') +const storage = require('node-persist') +const fs = require('fs') +const Rpio = require('rpio') + +const intval = {} + + +intval.init = function () {} +intval._restoreState = function () {} +intval._setState = function () {} +intval._storeState = function () {} +intval._declarePins = function () {} +intval._undeclarePins = function () {} +intval._startFwd = function () {} +intval._startBwd = function () {} +intval._pause = function () {} +intval._stop = function () {} +intval._watchMicro = function () {} +intval._watchRelease = function () {} +intval._releaseStateColsed = function () {} + +intval.reset = function () {} +intval.setDir = function () {} +intval.setExposure = function () {} +intval.setDelay = function () {} +intval.setCounter = function () {} +intval.frame = function () {} +intval.status = function () {} + +module.exports = intval \ No newline at end of file