My attempt to made a more useful lib. You can get the accelerator and magnetometer.

Fork of LSM303DLH by Michael Shimniok

vector.h

Committer:
salco
Date:
2017-08-06
Revision:
8:cc338ded0b2c
Parent:
0:de767f4959ef

File content as of revision 8:cc338ded0b2c:

#ifndef vector_h
#define vector_h
typedef struct vector
{
  float x, y, z;
} vector;

extern void vector_cross(const vector *a, const vector *b, vector *out);
extern float vector_dot(const vector *a,const vector *b);
extern void vector_normalize(vector *a);
#endif