Skip to content

Releases: wollewald/ADXL345_WE

Added comments on the CS pin when using ESP8266 boards

04 Nov 20:40
8d3e556
Compare
Choose a tag to compare

If you use an ESP8266, the standard CS Pin (e.g. D8/GPIO15 on a WEMOS D1 mini or NodeMCU) might not work. I added comments in readme and the SPI example sketch.

No change of code!

readme update - how to fix SPI problems of some modules

12 Apr 20:48
1ebdca4
Compare
Choose a tag to compare

Default SPI clock changed to 5 MHz

08 Apr 16:45
469b09d
Compare
Choose a tag to compare

I noticed that the limit for the SPI clock is 5 MHz. I had 8 MHz as default and changed this to 5 MHz.

Examples with interrupts more reliable for ESP32

26 May 19:40
0f23f29
Compare
Choose a tag to compare

Examples with interrupts are more reliable for the ESP32 now. I added a readAndClearInterrupts() at the end of the setup() function.

2.2.3 did not work on non-ESP32 boards

27 Apr 18:40
2a2fba1
Compare
Choose a tag to compare

In the last release I added the function:

_spi->begin(sckPin, misoPin, mosiPin, csPin);

...to enable users to change the SPI pins for ESP32 boards. This causes a compiler error on non-ESP32 boards, eventhough it's not used on these boards. I have now embraced this function by an #ifdef ESP32 clause.

Changing SPI Pins now possible

25 Apr 18:38
27eadae
Compare
Choose a tag to compare

With this release, you can change the SPI pins, e.g. when using an ESP32. ADXL345_basic_data.ino shows how it works.

Corrected some data type issues

12 Mar 11:03
be599c2
Compare
Choose a tag to compare

I converted some values wrongly into uint16_t instead of uint8_t. It doesn't change anything effectively, but now it's clean.

Replaced #define by constexpr

25 Oct 18:56
4c185d1
Compare
Choose a tag to compare

Several changes:

  • Replaced #define by constexpr
  • Tidied the constructors
  • Replaced private by protected
  • Replaced C-cast by static_cast

Various changes

04 Oct 15:23
2d202b3
Compare
Choose a tag to compare

Various changes:

  • got rid of several global variables
  • corrected typos
  • use of pointers for reading the measured values
  • corrected some variable type issues (there was no bug, but not best practice)

Calculation for pitch angle changed

08 Jul 12:48
1661e7e
Compare
Choose a tag to compare

I have changed the calculation of the pitch angle. The new method is more widely used than what I had implemented before. You find more information here, e.g.:

https://wiki.dfrobot.com/How_to_Use_a_Three-Axis_Accelerometer_for_Tilt_Sensing