diff --git a/docs/button_index.js.html b/docs/button_index.js.html index 37fd534..8d27e80 100644 --- a/docs/button_index.js.html +++ b/docs/button_index.js.html @@ -166,10 +166,10 @@

button/index.js

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; } @@ -195,12 +195,12 @@

button/index.js

}, 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: { @@ -241,7 +241,6 @@

button/index.js

intialize(options, callback) { } processRead() { - if (this.isOpen) { this.emit("open"); timer.clearTimeout(this.#state.interval);