FaBo3Axis-ADXL345-Library

Working libraries, libraries being ported and related hardware
User avatar
BennehBoy
Posts: 16
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

FaBo3Axis-ADXL345-Library

Postby BennehBoy » Thu Jan 12, 2017 11:12 am

https://github.com/FaBoPlatform/FaBo3Ax ... 45-Library

If I've read things correctly, all I should need to do to get this working for STM32 is correctly type the variables?

I see in the code that it uses 'int' regularly, presumably these need to be typed as int16_t.

I haven't spotted any of the other nasties and am assuming that the STM32 version of Wire will take care of i2c.

So, what's the correct way to go about this, should I fork the original authors code and issue a PR for the edits or do we make a private copy postfixed STM32? Or is anyone else bothered and I just reference a local version? :D

I ditched adafruits ADXL345 libraries (also requires their generic sensor library) in favour of this one because it's way less bloaty.

Just trying to get things lined up ready for when my boards arrive.

danieleff
Posts: 100
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: FaBo3Axis-ADXL345-Library

Postby danieleff » Thu Jan 12, 2017 11:49 am

I think that library is fine as it is. Did not test it, but it's not like you have to change every int to run on STM32.

User avatar
BennehBoy
Posts: 16
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: FaBo3Axis-ADXL345-Library

Postby BennehBoy » Thu Jan 12, 2017 4:57 pm

OK fair enough :D

Presumably it would ever so slightly reduce the amount of dynamic ram used though.


Return to “Libraries & Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest