Search
Preparing search index...
The search index is not available
M5Stack.js
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"node_modules/obniz/dist/src/obniz/libs/io_peripherals/io.d"
PeripheralIO
Class PeripheralIO
Hierarchy
PeripheralIO
Index
Constructors
constructor
Properties
Obniz
id
observers
onchange
value
Methods
_reset
add
Observer
drive
end
input
input
Wait
notified
output
pull
Constructors
constructor
new
PeripheralIO
(
obniz
:
Obniz
, id
:
number
)
:
PeripheralIO
Parameters
obniz:
Obniz
id:
number
Returns
PeripheralIO
Properties
Obniz
Obniz
:
Obniz
id
id
:
number
observers
observers
:
Array
<
function
>
Optional
onchange
onchange
:
undefined
|
function
value
value
:
boolean
Methods
_reset
_reset
(
)
:
void
Returns
void
add
Observer
add
Observer
(
callback
:
any
)
:
void
Parameters
callback:
any
Returns
void
drive
drive
(
drive
:
DriveType
)
:
void
Parameters
drive:
DriveType
Returns
void
end
end
(
)
:
void
Returns
void
input
input
(
callback
:
function
)
:
boolean
Parameters
callback:
function
(
value
:
boolean
)
:
void
Parameters
value:
boolean
Returns
void
Returns
boolean
input
Wait
input
Wait
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
notified
notified
(
obj
:
any
)
:
void
Parameters
obj:
any
Returns
void
output
output
(
value
:
boolean
)
:
void
Parameters
value:
boolean
Returns
void
pull
pull
(
updown
:
PullType
)
:
void
Parameters
updown:
PullType
Returns
void
Globals
"node_
modules/obniz/dist/src/obniz/libs/io_
peripherals/io.d"
PeripheralIO
constructor
Obniz
id
observers
onchange
value
_reset
add
Observer
drive
end
input
input
Wait
notified
output
pull
Generated using
TypeDoc