MEMS WRITE
With WRITE command you can write one or more location/s in the Carberry MEMS.
Synopsis
MEMS WRITE <ADDR> <DATA>[<DATA>]
WRITE accepts at least two parameters as:
Param | Description | Range |
<ADDR> | MEMS location address in HEX notation where start to write. | 0x00 - 0x80 |
<DATA> | Data byte to write | 0x00 - 0xFF |
[<DATA>] | Other optional bytes to write in sequence | 0x00 - 0xFF |
Notes
- In the command parameters, if you write more than one byte you must omit “0x” before data parameters.
- Multiple data bytes must be always represented by two characters, whithout spaces from each other.
Return
WRITE command returns OK.
Examples
Writing one byte to FXOS8700CQ_CTRL_REG1 register
MEMS WRITE 0x00 0x2A OK