Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
HC-SR04
HCSR04
Class HCSR04
Hierarchy
HCSR04
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
_unit
echo
keys
obniz
params
required
Keys
reset_
alltime
temp
trigger
vccIO
Methods
measure
measure
Wait
unit
wired
info
Constructors
constructor
new HCSR04
(
)
:
HCSR04
Returns
HCSR04
Properties
_unit
_unit
:
HCSR04UnitType
= "mm"
echo
echo
:
number
keys
keys
:
string
[]
obniz
obniz
:
Obniz
params
params
:
any
required
Keys
required
Keys
:
string
[]
reset_
alltime
reset_
alltime
:
boolean
= false
temp
temp
:
number
= 15
trigger
trigger
:
number
vccIO
vccIO
:
PeripheralIO
Methods
measure
measure
(
callback
:
(
distance
:
number
)
=>
void
)
:
void
Parameters
callback:
(
distance
:
number
)
=>
void
(
distance
:
number
)
:
void
Parameters
distance:
number
Returns
void
Returns
void
measure
Wait
measure
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
unit
unit
(
unit
:
HCSR04UnitType
)
:
void
Parameters
unit:
HCSR04UnitType
Returns
void
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
Static
info
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Globals
HCSR04
constructor
_unit
echo
keys
obniz
params
required
Keys
reset_
alltime
temp
trigger
vccIO
measure
measure
Wait
unit
wired
info
HCSR04
Options
HCSR04
Unit
Type
Generated using
TypeDoc