Constructors
constructor
-
Properties
_size
_size: any
configs
configs: any
displayName
displayName: string
ioKeys
ioKeys: string[]
io_cs
io_cs: any
keys
keys: string[]
obniz
params
params: any
regs
regs: any
requiredKeys
requiredKeys: string[]
sensor_addr
sensor_addr: any
Methods
arrayToBase64
- arrayToBase64(array: number[]): string
-
Parameters
Returns string
flushFIFO
-
Returns void
getChipIdWait
- getChipIdWait(): Promise<number>
-
Returns Promise<number>
i2c_byte_write
- i2c_byte_write(addr: number, byteData: number): void
-
Parameters
-
addr: number
-
byteData: number
Returns void
i2c_regs_write
- i2c_regs_write(regs: number[][]): void
-
Parameters
Returns void
init
-
Returns void
isCaptureDoneWait
- isCaptureDoneWait(): Promise<boolean>
-
Returns Promise<boolean>
readFIFOLengthWait
- readFIFOLengthWait(): Promise<number>
-
Returns Promise<number>
readFIFOWait
- readFIFOWait(): Promise<number[]>
-
Returns Promise<number[]>
setMode
- setMode(mode: string): void
-
Parameters
Returns void
setSize
- setSize(string: string): void
-
Parameters
Returns void
spi_pingpongWait
- spi_pingpongWait(): Promise<void>
-
Returns Promise<void>
spi_readWait
- spi_readWait(addr: number): Promise<number>
-
Parameters
Returns Promise<number>
spi_read_regWait
- spi_read_regWait(addr: number): Promise<number>
-
Parameters
Returns Promise<number>
spi_write
- spi_write(addr: number, byteData: number): void
-
Parameters
-
addr: number
-
byteData: number
Returns void
spi_write_reg
- spi_write_reg(addr: number, byteData: number): void
-
Parameters
-
addr: number
-
byteData: number
Returns void
startCapture
-
Returns void
startupWait
- startupWait(): Promise<void>
-
Returns Promise<void>
takeWait
- takeWait(size?: undefined | string): Promise<number[]>
-
Parameters
-
Optional size: undefined | string
Returns Promise<number[]>
updateFIFO
- updateFIFO(data: any): void
-
Parameters
Returns void
wired
- wired(obniz: Obniz): void
-
Parameters
Returns void
Static info
-