Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dtex committed Jul 4, 2020
1 parent 53b5213 commit 6bbf6e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/button_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ <h1><span class="name">button/index.js</span></h1>
const Provider = await getProvider(options, "builtin/digital");

let mode = Provider.Input;
if (!options.isPullup) {
if (typeof options.isPullup !== "undefined") {
mode = Provider.InputPullUp;
}
if (!options.isPulldown) {
if (typeof options.isPulldown !== "undefined") {
mode = Provider.InputPullDown;
}

Expand All @@ -195,12 +195,12 @@ <h1><span class="name">button/index.js</span></h1>
},
downValue: {
get: () => {
return 1 ^ this.isPullup ^ this.invert;
return 1 ^ this.#state.isPullup ^ this.invert;
}
},
upValue: {
get: () => {
return 0 ^ this.isPullup ^ this.invert;
return 0 ^ this.#state.isPullup ^ this.invert;
}
},
holdtime: {
Expand Down Expand Up @@ -241,7 +241,6 @@ <h1><span class="name">button/index.js</span></h1>
intialize(options, callback) { }

processRead() {

if (this.isOpen) {
this.emit("open");
timer.clearTimeout(this.#state.interval);
Expand Down

0 comments on commit 6bbf6e9

Please sign in to comment.