Skip to content

Releases: wollewald/ADXL345_WE

Updated function list, SPI management for Arduino UNO R4

26 Jan 11:05
8136bc5
Compare
Choose a tag to compare

I updated the public function list.

To control two ADXL345 devices via SPI on an Arduino UNO R4 Minima or WiFi, I needed to change the constructor and add a sensor ID.

Correct way of handling xyzFloat and several other changes

24 Jan 18:09
5615bd6
Compare
Choose a tag to compare
  • Handling of xyzFloat strucure changed
  • All example sketches are modified accordingly
  • Two additional example sketches for using two ADXL345 modules via SPI
  • Code shortened

Improved SPI connection check

05 Jan 12:05
62b78dd
Compare
Choose a tag to compare

I have improved SPI connection check. When connecting several devices the return value of the init() function was misleading if one of the devices was not connected correctly.

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.