Search
Preparing search index...
The search index is not available
megabit
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
GPIO
Class GPIO
Hierarchy
GPIOPort
GPIO
Index
Constructors
constructor
Properties
onchange
default
Max
Listeners
Accessors
direction
exported
pin
Name
port
Name
port
Number
Methods
add
Listener
emit
event
Names
export
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
read
remove
All
Listeners
remove
Listener
set
Max
Listeners
unexport
write
listener
Count
Constructors
constructor
new GPIO
(
portNumber
:
PortNumber
)
:
GPIO
Parameters
portNumber:
PortNumber
Returns
GPIO
Properties
onchange
onchange
:
GPIOChangeEventHandler
|
undefined
Static
default
Max
Listeners
default
Max
Listeners
:
number
Accessors
direction
get
direction
(
)
:
DirectionMode
Returns
DirectionMode
exported
get
exported
(
)
:
boolean
Returns
boolean
pin
Name
get
pinName
(
)
:
PinName
Returns
PinName
port
Name
get
portName
(
)
:
PortName
Returns
PortName
port
Number
get
portNumber
(
)
:
PortNumber
Returns
PortNumber
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
export
export
(
direction
:
DirectionMode
)
:
Promise
<
void
>
Parameters
direction:
DirectionMode
Returns
Promise
<
void
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
read
read
(
)
:
Promise
<
GPIOValue
>
Returns
Promise
<
GPIOValue
>
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
unexport
unexport
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
write
write
(
value
:
GPIOValue
)
:
Promise
<
void
>
Parameters
value:
GPIOValue
Returns
Promise
<
void
>
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
GPIO
constructor
onchange
default
Max
Listeners
direction
exported
pin
Name
port
Name
port
Number
add
Listener
emit
event
Names
export
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
read
remove
All
Listeners
remove
Listener
set
Max
Listeners
unexport
write
listener
Count
Generated using
TypeDoc
since v4.0.0