Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
GP2Y0A21YK0F
GP2Y0A21YK0F
Class GP2Y0A21YK0F
Hierarchy
GP2Y0A21YK0F
Grove_DistanceSensor
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
_unit
ad_
signal
keys
obniz
params
required
Keys
Methods
_volt2distance
get
Wait
start
unit
wired
info
Object literals
display
IoNames
Constructors
constructor
new GP2
Y0A21YK0F
(
)
:
GP2Y0A21YK0F
Returns
GP2Y0A21YK0F
Properties
_unit
_unit
:
GP2Y0A21YK0FUnitType
= "mm"
ad_
signal
ad_
signal
:
PeripheralAD
keys
keys
:
string
[]
obniz
obniz
:
Obniz
params
params
:
any
required
Keys
required
Keys
:
string
[]
Methods
_volt2distance
_volt2distance
(
val
:
number
)
:
number
Parameters
val:
number
Returns
number
get
Wait
get
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
start
start
(
callback
:
(
distance
:
number
)
=>
void
)
:
void
Parameters
callback:
(
distance
:
number
)
=>
void
(
distance
:
number
)
:
void
Parameters
distance:
number
Returns
void
Returns
void
unit
unit
(
unit
:
GP2Y0A21YK0FUnitType
)
:
void
Parameters
unit:
GP2Y0A21YK0FUnitType
Returns
void
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
Static
info
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Object literals
display
IoNames
display
IoNames
:
object
gnd
gnd
:
string
= "gnd"
signal
signal
:
string
= "signal"
vcc
vcc
:
string
= "vcc"
Globals
GP2
Y0A21YK0F
constructor
_unit
ad_
signal
keys
obniz
params
required
Keys
_volt2distance
get
Wait
start
unit
wired
info
display
IoNames
GP2
Y0A21YK0FOptions
GP2
Y0A21YK0FUnit
Type
Generated using
TypeDoc