Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
1 changed files with 10 additions and 1 deletions
Showing only changes of commit 32625bbbde - Show all commits

View File

@ -43,6 +43,9 @@ class Intval {
}
}
this._declarePins()
process.on('SIGINT', () => {
this._undeclarePins()
})
}
_declarePins () {
this._pin.fwd = Gpio(4, 'out')
@ -52,7 +55,13 @@ class Intval {
this._pin.release.watch(this._watchRelease)
}
_startFwd () {
_undeclarePins () {
this._pin.fwd.unexport()
this._pin.bwd.unexport()
this._pin.micro.unexport()
this._pin.release.unexport()
}
_startFwd () {
this._pin.fwd.set(1)
this._pin.bwd.set(0)
//start high-cpu watch