adxl345-bytes-to-vector

1.0.0 • Public • Published

adxl345-bytes-to-vector

Converts the adxl345 bytes to a 3d vector

Input X LSB
X MSB

Y LSB Y MSB

Z LSB Z MSB

Output X int Y int Z int

var adxl345Bytes2Vec = require("adxl345-bytes-to-vector");
var rawBytes = [0x31,0x00,0x23,0x00,0x31,0xff];
var vector = adxl345Bytes2Vec(rawBytes);
//vector = [ 49, 35, -207 ]

Readme

Keywords

none

Package Sidebar

Install

npm i adxl345-bytes-to-vector

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • stierma1