Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
CCS811
CCS811
Class CCS811
Hierarchy
I2cPartsAbstract
CCS811
Implements
ObnizPartsInterface
ObnizPartsInterface
Index
Constructors
constructor
Properties
address
commands
i2cinfo
io
Keys
io_
add
io_
nrst
io_
nwak
keys
params
required
Keys
Methods
char2short
check
Available
Data
Wait
clear
Flag
Wait
config
Wait
get
Drive
Mode
Wait
get
Meas
Mode
Wait
getTVOCWait
geteCO2
Wait
hw
Reset
Wait
i2c
Info
read
Algorithm
Results
Wait
read
Wait
set
Drive
Mode
Wait
set
Environmental
Data
Wait
sleep
start
wake
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
Constructors
constructor
new CCS811
(
)
:
CCS811
Returns
CCS811
Properties
address
address
:
any
commands
commands
:
any
i2cinfo
i2cinfo
:
I2cInfo
Optional
io
Keys
io
Keys
:
string
[]
|
undefined
Optional
io_
add
io_
add
:
PeripheralIO
Optional
io_
nrst
io_
nrst
:
PeripheralIO
Optional
io_
nwak
io_
nwak
:
PeripheralIO
keys
keys
:
string
[]
params
params
:
any
required
Keys
required
Keys
:
string
[]
Methods
char2short
char2short
(
val1
:
number
, val2
:
number
)
:
any
Parameters
val1:
number
val2:
number
Returns
any
check
Available
Data
Wait
check
Available
Data
Wait
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
clear
Flag
Wait
clear
Flag
Wait
(
address
:
number
, index
:
number
)
:
Promise
<
void
>
Parameters
address:
number
index:
number
Returns
Promise
<
void
>
config
Wait
config
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Drive
Mode
Wait
get
Drive
Mode
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Meas
Mode
Wait
get
Meas
Mode
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
getTVOCWait
getTVOCWait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
geteCO2
Wait
geteCO2
Wait
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
hw
Reset
Wait
hw
Reset
Wait
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
i2c
Info
i2c
Info
(
)
:
I2cInfo
Returns
I2cInfo
read
Algorithm
Results
Wait
read
Algorithm
Results
Wait
(
)
:
Promise
<
{
TVOC
:
number
;
eCO2
:
number
}
>
Returns
Promise
<
{
TVOC
:
number
;
eCO2
:
number
}
>
read
Wait
read
Wait
(
command
:
number
, length
:
number
)
:
Promise
<
number
[]
>
Parameters
command:
number
length:
number
Returns
Promise
<
number
[]
>
set
Drive
Mode
Wait
set
Drive
Mode
Wait
(
mode
:
number
)
:
Promise
<
void
>
Parameters
mode:
number
Returns
Promise
<
void
>
set
Environmental
Data
Wait
set
Environmental
Data
Wait
(
relativeHumidity
:
number
, temperature
:
number
)
:
Promise
<
void
>
Parameters
relativeHumidity:
number
temperature:
number
Returns
Promise
<
void
>
sleep
sleep
(
)
:
void
Returns
void
start
start
(
)
:
void
Returns
void
wake
wake
(
)
:
void
Returns
void
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
write
write
(
command
:
any
, buf
:
any
)
:
void
Parameters
command:
any
buf:
any
Returns
void
write
Flag
Wait
write
Flag
Wait
(
address
:
number
, index
:
number
)
:
Promise
<
void
>
Parameters
address:
number
index:
number
Returns
Promise
<
void
>
Static
char
Array
ToInt16
char
Array
ToInt16
(
values
:
[
number
,
number
]
, endian
?:
string
)
:
number
Parameters
values:
[
number
,
number
]
Default value
endian:
string
= "b"
Returns
number
Static
char
Array
ToXyz
char
Array
ToXyz
(
data
:
number
[]
, endian
?:
string
, scaleFunc
?:
(Anonymous function)
)
:
Xyz
Parameters
data:
number
[]
Default value
endian:
string
= "b"
Default value
scaleFunc:
(Anonymous function)
= (d: number): number => d
Returns
Xyz
Static
info
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Globals
CCS811
constructor
address
commands
i2cinfo
io
Keys
io_
add
io_
nrst
io_
nwak
keys
params
required
Keys
char2short
check
Available
Data
Wait
clear
Flag
Wait
config
Wait
get
Drive
Mode
Wait
get
Meas
Mode
Wait
getTVOCWait
geteCO2
Wait
hw
Reset
Wait
i2c
Info
read
Algorithm
Results
Wait
read
Wait
set
Drive
Mode
Wait
set
Environmental
Data
Wait
sleep
start
wake
wired
write
write
Flag
Wait
char
Array
ToInt16
char
Array
ToXyz
info
CCS811
Options
Generated using
TypeDoc