Skip to content

Releases: wollewald/ADXL345_WE

SPI clock speed can now be set

18 Mar 20:56
4358179
Compare
Choose a tag to compare

I embedded the SPI transaction in SPI.beginTransaction(SPISetttings(clock, MSBFIRST, SPI_MODE3)) and SPI.endTransaction().

The clock can be set using the new setSPIClockSpeed(unsigned long) function.

Added setAngleOffsets and getAngleOffsets functions

11 Feb 20:01
f5271f1
Compare
Choose a tag to compare

With these function you can get and set the angleOffsets. The offset is an xyzFloat.

Fixed a bug in setInterruptPolarity

04 Dec 13:51
e0199dc
Compare
Choose a tag to compare

If forgot to finally write the pority into the register.

FIFO Settings more robust now

07 Nov 09:53
e2ea5aa
Compare
Choose a tag to compare

When using setFifoParameters after setFifoMode, the mode was overwritten to bypass. This is now changed and the order of the two functions are not relevant anymore.

SPI now implemented

30 Oct 13:52
8f4b712
Compare
Choose a tag to compare

I have added SPI functionality to the library. SPI is faster and needed in case you need high data rates.

Read performance increase

03 Sep 15:19
7d73060
Compare
Choose a tag to compare

In the readRegister functions, I have added a "false" in Wire.endTransmission() ---> Wire.endTransmission(false) before Wire.requestFrom(). This saves some microseconds.

TwoWire object can now be passed to the constructor

16 May 13:41
886887a
Compare
Choose a tag to compare

There are now several ways to create your ADXL345 object:

  • ADXL345_WE myAcc = ADXL345_WE() -> uses Wire / I2C Address = 0x53
  • ADXL345_WE myAcc = ADXL345_WE(ADXL345_I2CADDR) -> uses Wire / ADXL345_I2CADDR
  • ADXL345_WE myAcc = ADXL345_WE(&wire2) -> uses the TwoWire object wire2 / ADXL345_I2CADDR
  • ADXL345_WE myAcc = ADXL345_WE(&wire2, ADXL345_I2CADDR) -> all together

So now you are able to use the two I2C busses of ESP32 boards.

Corrected few typos

11 Feb 23:02
a6a9305
Compare
Choose a tag to compare

No change to the code - only few typos in comments of example sketches.

FIFO reworked - now 32 x,y,z values available

11 Feb 21:07
d411c4c
Compare
Choose a tag to compare

In previous versions only 32 single values were available. I had ignored that the FIFO buffer needs to be read in a different way (multiple byte read). This is described in the Application Note AN 1025. The example sketches have also been changed accordingly.

Furthermore I have changed tabs in to spaces, since I have noticed that some people have problems with tabs.

Deleted a redundant line in init()

26 Jan 17:49
ba33986
Compare
Choose a tag to compare

Just deleted one redundant line in init();