Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
Grove_DistanceSensor
Grove_DistanceSensor
Class Grove_DistanceSensor
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
Grove_
Distance
Sensor
(
)
:
Grove_DistanceSensor
Returns
Grove_DistanceSensor
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
Grove_
Distance
Sensor
constructor
_unit
ad_
signal
keys
obniz
params
required
Keys
_volt2distance
get
Wait
start
unit
wired
info
display
IoNames
Grove_
Distance
Sensor
OptionsA
Grove_
Distance
Sensor
OptionsB
Grove_
Distance
Sensor
Options
Generated using
TypeDoc