diff --git a/AS5600.cpp b/AS5600.cpp index db914ed..4477c28 100644 --- a/AS5600.cpp +++ b/AS5600.cpp @@ -1,7 +1,7 @@ // // FILE: AS56000.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.5.1 +// VERSION: 0.5.2 // PURPOSE: Arduino library for AS5600 magnetic rotation meter // DATE: 2022-05-28 // URL: https://github.com/RobTillaart/AS5600 @@ -509,17 +509,34 @@ int32_t AS5600::resetCumulativePosition(int32_t position) } +int AS5600::lastError() +{ + int value = _error; + _error = AS5600_OK; + return value; +} + + ///////////////////////////////////////////////////////// // // PROTECTED AS5600 // uint8_t AS5600::readReg(uint8_t reg) { + _error = AS5600_OK; _wire->beginTransmission(_address); _wire->write(reg); - _error = _wire->endTransmission(); - - _wire->requestFrom(_address, (uint8_t)1); + if (_wire->endTransmission() != 0) + { + _error = AS5600_ERROR_I2C_READ_0; + return 0; + } + uint8_t n = _wire->requestFrom(_address, (uint8_t)1); + if (n != 1) + { + _error = AS5600_ERROR_I2C_READ_1; + return 0; + } uint8_t _data = _wire->read(); return _data; } @@ -527,11 +544,20 @@ uint8_t AS5600::readReg(uint8_t reg) uint16_t AS5600::readReg2(uint8_t reg) { + _error = AS5600_OK; _wire->beginTransmission(_address); _wire->write(reg); - _error = _wire->endTransmission(); - - _wire->requestFrom(_address, (uint8_t)2); + if (_wire->endTransmission() != 0) + { + _error = AS5600_ERROR_I2C_READ_2; + return 0; + } + uint8_t n = _wire->requestFrom(_address, (uint8_t)2); + if (n != 2) + { + _error = AS5600_ERROR_I2C_READ_3; + return 0; + } uint16_t _data = _wire->read(); _data <<= 8; _data += _wire->read(); @@ -541,21 +567,29 @@ uint16_t AS5600::readReg2(uint8_t reg) uint8_t AS5600::writeReg(uint8_t reg, uint8_t value) { + _error = AS5600_OK; _wire->beginTransmission(_address); _wire->write(reg); _wire->write(value); - _error = _wire->endTransmission(); + if (_wire->endTransmission() != 0) + { + _error = AS5600_ERROR_I2C_WRITE_0; + } return _error; } uint8_t AS5600::writeReg2(uint8_t reg, uint16_t value) { + _error = AS5600_OK; _wire->beginTransmission(_address); _wire->write(reg); _wire->write(value >> 8); _wire->write(value & 0xFF); - _error = _wire->endTransmission(); + if (_wire->endTransmission() != 0) + { + _error = AS5600_ERROR_I2C_WRITE_0; + } return _error; } diff --git a/AS5600.h b/AS5600.h index 34d1aa6..5bcdb94 100644 --- a/AS5600.h +++ b/AS5600.h @@ -2,7 +2,7 @@ // // FILE: AS5600.h // AUTHOR: Rob Tillaart -// VERSION: 0.5.1 +// VERSION: 0.5.2 // PURPOSE: Arduino library for AS5600 magnetic rotation meter // DATE: 2022-05-28 // URL: https://github.com/RobTillaart/AS5600 @@ -12,7 +12,8 @@ #include "Wire.h" -#define AS5600_LIB_VERSION (F("0.5.1")) +#define AS5600_LIB_VERSION (F("0.5.2")) + // default addresses const uint8_t AS5600_DEFAULT_ADDRESS = 0x36; @@ -36,6 +37,17 @@ const uint8_t AS5600_MODE_DEGREES = 0; const uint8_t AS5600_MODE_RADIANS = 1; const uint8_t AS5600_MODE_RPM = 2; + +// ERROR CODES +const int AS5600_OK = 0; +const int AS5600_ERROR_I2C_READ_0 = -100; +const int AS5600_ERROR_I2C_READ_1 = -101; +const int AS5600_ERROR_I2C_READ_2 = -102; +const int AS5600_ERROR_I2C_READ_3 = -103; +const int AS5600_ERROR_I2C_WRITE_0 = -200; +const int AS5600_ERROR_I2C_WRITE_1 = -201; + + // CONFIGURE CONSTANTS // check datasheet for details @@ -202,7 +214,7 @@ class AS5600 // void burnSetting(); - // Experimental 0.1.2 - to be tested. + // EXPERIMENTAL 0.1.2 - to be tested. // approximation of the angular speed in rotations per second. // mode == 1: radians /second // mode == 0: degrees /second (default) @@ -220,6 +232,9 @@ class AS5600 // returns last position. int32_t resetCumulativePosition(int32_t position = 0); + // EXPERIMENTAL 0.5.2 + int lastError(); + protected: uint8_t readReg(uint8_t reg); @@ -230,7 +245,7 @@ class AS5600 uint8_t _address = AS5600_DEFAULT_ADDRESS; uint8_t _directionPin = 255; uint8_t _direction = AS5600_CLOCK_WISE; - uint8_t _error = 0; + int _error = AS5600_OK; TwoWire* _wire; diff --git a/CHANGELOG.md b/CHANGELOG.md index 1669311..221646b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.5.2] - 2024-01-25 +- add experimental error handling +- update examples +- minor edits + + ## [0.5.1] - 2023-12-31 - fix #51, add **increaseOffset(float degrees)** - update keywords.txt - update readme.md (several cleanups) - ## [0.5.0] - 2023-12-07 - refactor API, begin() - update readme.md diff --git a/README.md b/README.md index e5f36d9..5c67c37 100644 --- a/README.md +++ b/README.md @@ -439,6 +439,40 @@ Please read datasheet for details. | 6-7 | | not used | | +#### Error handling + +Since 0.5.2 the library has added **experimental** error handling. +For now only lowest level I2C errors are checked for transmission errors. +Error handling might be improved upon in the future. + +Note: The public functions do not act on error conditions. +This might change in the future. +So the user should check for error conditions. + +```cpp +int e = lastError(); +if (e != AS5600_OK) +{ + // handle error +} +``` + + +- **int lastError()** returns the last error code. +After reading the error status is cleared to **AS5600_OK**. + + +| Error codes | value | notes | +|:--------------------------|:-------:|:----------| +| AS5600_OK | 0 | default | +| AS5600_ERROR_I2C_READ_0 | -100 | +| AS5600_ERROR_I2C_READ_1 | -101 | +| AS5600_ERROR_I2C_READ_2 | -102 | +| AS5600_ERROR_I2C_READ_3 | -103 | +| AS5600_ERROR_I2C_WRITE_0 | -200 | +| AS5600_ERROR_I2C_WRITE_1 | -201 | + + ## Make configuration persistent. BURN #### Read burn count @@ -613,6 +647,7 @@ This output could be used to connect multiple sensors to different analogue port **Warning**: If and how well this analog option works is not verified or tested. + ---- ## AS5600L class @@ -697,9 +732,9 @@ priority is relative. - is there improvement possible. + #### Could -- add error handling - investigate PGO programming pin. - check for compatible devices - AS5200 ? @@ -707,7 +742,13 @@ priority is relative. - basic performance per function - I2C improvements - software direction - +- implement extended error handling in public functions. + - will increase footprint !! how much? + - writeReg() only if readReg() is OK ==> prevent incorrect writes + - ```if (_error != 0) return false;``` + - set AS5600_ERROR_PARAMETER e.g. setZPosition() + - a derived class with extended error handling? + #### Wont (unless) diff --git a/examples/AS5600L_set_address/AS5600L_set_address.ino b/examples/AS5600L_set_address/AS5600L_set_address.ino index 54057b5..3bcdb00 100644 --- a/examples/AS5600L_set_address/AS5600L_set_address.ino +++ b/examples/AS5600L_set_address/AS5600L_set_address.ino @@ -2,10 +2,11 @@ // FILE: AS5600L_set_address.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L ASL; // use default Wire diff --git a/examples/AS5600_I2C_frequency/AS5600_I2C_frequency.ino b/examples/AS5600_I2C_frequency/AS5600_I2C_frequency.ino index 0510a51..512bbf8 100644 --- a/examples/AS5600_I2C_frequency/AS5600_I2C_frequency.ino +++ b/examples/AS5600_I2C_frequency/AS5600_I2C_frequency.ino @@ -2,10 +2,11 @@ // FILE: AS5600_I2C_frequency.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L as5600; // use default Wire diff --git a/examples/AS5600_angular_speed/AS5600_angular_speed.ino b/examples/AS5600_angular_speed/AS5600_angular_speed.ino index bdcde29..b5fcb61 100644 --- a/examples/AS5600_angular_speed/AS5600_angular_speed.ino +++ b/examples/AS5600_angular_speed/AS5600_angular_speed.ino @@ -2,10 +2,11 @@ // FILE: AS5600_angular_speed.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L as5600; // use default Wire @@ -24,7 +25,7 @@ void setup() Serial.println(as5600.getAddress()); - // as5600.setAddress(0x40); // AS5600L only + // as5600.setAddress(0x40); // AS5600L only int b = as5600.isConnected(); Serial.print("Connect: "); diff --git a/examples/AS5600_angular_speed_RPM/AS5600_angular_speed_RPM.ino b/examples/AS5600_angular_speed_RPM/AS5600_angular_speed_RPM.ino index d733eb0..73425a9 100644 --- a/examples/AS5600_angular_speed_RPM/AS5600_angular_speed_RPM.ino +++ b/examples/AS5600_angular_speed_RPM/AS5600_angular_speed_RPM.ino @@ -2,10 +2,11 @@ // FILE: AS5600_angular_speed_RPM.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_burn_conf_mang/AS5600_burn_conf_mang.ino b/examples/AS5600_burn_conf_mang/AS5600_burn_conf_mang.ino index 13ba3c7..d3ab630 100644 --- a/examples/AS5600_burn_conf_mang/AS5600_burn_conf_mang.ino +++ b/examples/AS5600_burn_conf_mang/AS5600_burn_conf_mang.ino @@ -2,8 +2,8 @@ // FILE: AS5600_burn_conf_mang.ino // AUTHOR: Rob Tillaart // PURPOSE: demo (not tested yet - see issue #38) - - +// URL: https://github.com/RobTillaart/AS5600 +// // WARNING // As burning the settings can only be done once this sketch has to be used with care. // @@ -17,7 +17,6 @@ #include "AS5600.h" -#include "Wire.h" AS5600 as5600; // use default Wire // AS5600L as5600; diff --git a/examples/AS5600_burn_zpos/AS5600_burn_zpos.ino b/examples/AS5600_burn_zpos/AS5600_burn_zpos.ino index 0360442..2f0301c 100644 --- a/examples/AS5600_burn_zpos/AS5600_burn_zpos.ino +++ b/examples/AS5600_burn_zpos/AS5600_burn_zpos.ino @@ -2,8 +2,8 @@ // FILE: AS5600_burn_zpos.ino // AUTHOR: Rob Tillaart // PURPOSE: demo (not tested yet - see issue #38) - - +// URL: https://github.com/RobTillaart/AS5600 +// // WARNING // As burning the angle can only be done three times this sketch has to be used with care. // @@ -17,7 +17,6 @@ #include "AS5600.h" -#include "Wire.h" AS5600 as5600; // use default Wire // AS5600L as5600; diff --git a/examples/AS5600_demo/AS5600_demo.ino b/examples/AS5600_demo/AS5600_demo.ino index 78f10fb..a5caf57 100644 --- a/examples/AS5600_demo/AS5600_demo.ino +++ b/examples/AS5600_demo/AS5600_demo.ino @@ -2,10 +2,11 @@ // FILE: AS5600_demo.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L as5600; // use default Wire diff --git a/examples/AS5600_demo_ESP32/AS5600_demo_ESP32.ino b/examples/AS5600_demo_ESP32/AS5600_demo_ESP32.ino index a3ba5c2..7728a21 100644 --- a/examples/AS5600_demo_ESP32/AS5600_demo_ESP32.ino +++ b/examples/AS5600_demo_ESP32/AS5600_demo_ESP32.ino @@ -2,10 +2,11 @@ // FILE: AS5600_demo.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L as5600; // use default Wire diff --git a/examples/AS5600_demo_RP2040/AS5600_demo_RP2040.ino b/examples/AS5600_demo_RP2040/AS5600_demo_RP2040.ino index 49ac9dc..ad15d02 100644 --- a/examples/AS5600_demo_RP2040/AS5600_demo_RP2040.ino +++ b/examples/AS5600_demo_RP2040/AS5600_demo_RP2040.ino @@ -2,10 +2,11 @@ // FILE: AS5600_demo.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L as5600; // use default Wire diff --git a/examples/AS5600_demo_STM32/AS5600_demo_STM32.ino b/examples/AS5600_demo_STM32/AS5600_demo_STM32.ino index 999860e..86ed1dd 100644 --- a/examples/AS5600_demo_STM32/AS5600_demo_STM32.ino +++ b/examples/AS5600_demo_STM32/AS5600_demo_STM32.ino @@ -2,11 +2,13 @@ // FILE: AS5600_demo.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 // // tested compilation with Nucleo-64 + #include "AS5600.h" -#include "Wire.h" + AS5600L as5600; // use default Wire diff --git a/examples/AS5600_demo_offset/AS5600_demo_offset.ino b/examples/AS5600_demo_offset/AS5600_demo_offset.ino index c6c7c1a..cae308f 100644 --- a/examples/AS5600_demo_offset/AS5600_demo_offset.ino +++ b/examples/AS5600_demo_offset/AS5600_demo_offset.ino @@ -2,10 +2,11 @@ // FILE: AS5600_demo_offset.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_demo_radians/AS5600_demo_radians.ino b/examples/AS5600_demo_radians/AS5600_demo_radians.ino index 6f75716..67b47e9 100644 --- a/examples/AS5600_demo_radians/AS5600_demo_radians.ino +++ b/examples/AS5600_demo_radians/AS5600_demo_radians.ino @@ -2,10 +2,11 @@ // FILE: AS5600_demo_radians.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_demo_software_direction/AS5600_demo_software_direction.ino b/examples/AS5600_demo_software_direction/AS5600_demo_software_direction.ino index fe23b1f..d39880f 100644 --- a/examples/AS5600_demo_software_direction/AS5600_demo_software_direction.ino +++ b/examples/AS5600_demo_software_direction/AS5600_demo_software_direction.ino @@ -2,13 +2,13 @@ // FILE: AS5600_demo_software_direction.ino // AUTHOR: Rob Tillaart // PURPOSE: demo software direction control - - +// URL: https://github.com/RobTillaart/AS5600 +// // connect the DIR pin of the AS5600 to GND #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_demo_status/AS5600_demo_status.ino b/examples/AS5600_demo_status/AS5600_demo_status.ino index 2430b49..3ed1730 100644 --- a/examples/AS5600_demo_status/AS5600_demo_status.ino +++ b/examples/AS5600_demo_status/AS5600_demo_status.ino @@ -2,10 +2,11 @@ // FILE: AS5600_demo_status.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L as5600(0x40); // use default Wire diff --git a/examples/AS5600_demo_two_I2C/AS5600_demo_two_I2C.ino b/examples/AS5600_demo_two_I2C/AS5600_demo_two_I2C.ino index 4103bea..e3fc4e5 100644 --- a/examples/AS5600_demo_two_I2C/AS5600_demo_two_I2C.ino +++ b/examples/AS5600_demo_two_I2C/AS5600_demo_two_I2C.ino @@ -2,6 +2,7 @@ // FILE: AS5600_demo_two_I2C.ino // AUTHOR: Rob Tillaart // PURPOSE: demo two I2C busses +// URL: https://github.com/RobTillaart/AS5600 // // Works only if Wire1 bus is present e.g. // - nano33 ble @@ -10,7 +11,7 @@ #include "AS5600.h" -#include "Wire.h" + AS5600 as5600_0(&Wire); AS5600 as5600_1(&Wire1); diff --git a/examples/AS5600_outmode_analog_100/AS5600_outmode_analog_100.ino b/examples/AS5600_outmode_analog_100/AS5600_outmode_analog_100.ino index e6ec10b..f671e3c 100644 --- a/examples/AS5600_outmode_analog_100/AS5600_outmode_analog_100.ino +++ b/examples/AS5600_outmode_analog_100/AS5600_outmode_analog_100.ino @@ -2,12 +2,13 @@ // FILE: AS5600_outmode_analog_100.ino // AUTHOR: Rob Tillaart // PURPOSE: experimental demo - +// URL: https://github.com/RobTillaart/AS5600 +// // connect the OUT pin to the analog port of the processor #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_outmode_analog_90/AS5600_outmode_analog_90.ino b/examples/AS5600_outmode_analog_90/AS5600_outmode_analog_90.ino index f1662b3..e542aff 100644 --- a/examples/AS5600_outmode_analog_90/AS5600_outmode_analog_90.ino +++ b/examples/AS5600_outmode_analog_90/AS5600_outmode_analog_90.ino @@ -2,12 +2,12 @@ // FILE: AS5600_outmode_analog_90.ino // AUTHOR: Rob Tillaart // PURPOSE: experimental demo - +// URL: https://github.com/RobTillaart/AS5600 // connect the OUT pin to the analog port of the processor #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_outmode_analog_pwm/AS5600_outmode_analog_pwm.ino b/examples/AS5600_outmode_analog_pwm/AS5600_outmode_analog_pwm.ino index f68b199..c010068 100644 --- a/examples/AS5600_outmode_analog_pwm/AS5600_outmode_analog_pwm.ino +++ b/examples/AS5600_outmode_analog_pwm/AS5600_outmode_analog_pwm.ino @@ -2,8 +2,8 @@ // FILE: AS5600_outmode_analog_pwm.ino // AUTHOR: Rob Tillaart // PURPOSE: experimental - - +// URL: https://github.com/RobTillaart/AS5600 +// // connect the OUT pin to the analog port of the processor // use a resistor and a capacitor to create a low pass filter // so the PWM behave a bit like a analog signal @@ -13,7 +13,7 @@ #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_outmode_pwm_interrupt/AS5600_outmode_pwm_interrupt.ino b/examples/AS5600_outmode_pwm_interrupt/AS5600_outmode_pwm_interrupt.ino index dca2142..780a5df 100644 --- a/examples/AS5600_outmode_pwm_interrupt/AS5600_outmode_pwm_interrupt.ino +++ b/examples/AS5600_outmode_pwm_interrupt/AS5600_outmode_pwm_interrupt.ino @@ -2,10 +2,11 @@ // FILE: AS5600_outmode_pwm_interrupt.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_plus_AS5600L/AS5600_plus_AS5600L.ino b/examples/AS5600_plus_AS5600L/AS5600_plus_AS5600L.ino index c7ba1f9..db8eb4b 100644 --- a/examples/AS5600_plus_AS5600L/AS5600_plus_AS5600L.ino +++ b/examples/AS5600_plus_AS5600L/AS5600_plus_AS5600L.ino @@ -6,11 +6,12 @@ #include "AS5600.h" -#include "Wire.h" + AS5600 as5600_R; // uses default Wire AS5600L as5600_L; // uses default Wire + int Raw_R; int Raw_Prev; @@ -29,7 +30,7 @@ void setup() Wire.begin(); - // as5600_L.setAddress(0x40); // AS5600L only + // as5600_L.setAddress(0x40); // AS5600L only as5600_L.begin(15); // set direction pin. as5600_L.setDirection(AS5600_CLOCK_WISE); // delay(1000); @@ -87,10 +88,10 @@ void loop() float convertRawAngleToDegrees(uint32_t newAngle) { - /* Raw data reports 0 - 4095 segments, which is 0.087890625 of a degree */ + // Raw data reports 0 - 4095 segments, which is 0.087890625 of a degree float retVal = newAngle * 0.087890625; retVal = round(retVal); - // retVal=retVal/10; + // retVal=retVal/10; return retVal; } diff --git a/examples/AS5600_position/AS5600_position.ino b/examples/AS5600_position/AS5600_position.ino index 6c9e740..f08a7f8 100644 --- a/examples/AS5600_position/AS5600_position.ino +++ b/examples/AS5600_position/AS5600_position.ino @@ -2,10 +2,11 @@ // FILE: AS5600_position.ino // AUTHOR: Rob Tillaart // PURPOSE: demo +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600 as5600; // use default Wire diff --git a/examples/AS5600_resetCumulativeCounter/AS5600_resetCumulativeCounter.ino b/examples/AS5600_resetCumulativeCounter/AS5600_resetCumulativeCounter.ino index da3823d..a16957f 100644 --- a/examples/AS5600_resetCumulativeCounter/AS5600_resetCumulativeCounter.ino +++ b/examples/AS5600_resetCumulativeCounter/AS5600_resetCumulativeCounter.ino @@ -2,10 +2,11 @@ // FILE: AS5600_resetCumulativeCounter.ino // AUTHOR: Daniel-Frenkel, (slightly by Rob Tillaart) // PURPOSE: demo - see issue #30 +// URL: https://github.com/RobTillaart/AS5600 #include "AS5600.h" -#include "Wire.h" + AS5600L as5600; // use default Wire @@ -17,7 +18,7 @@ void setup() Serial.print("AS5600_LIB_VERSION: "); Serial.println(AS5600_LIB_VERSION); - Wire.begin(14, 15); // ESP32 + Wire.begin(14, 15); // ESP32 as5600.begin(); as5600.setAddress(0x40); // AS5600L has address diff --git a/keywords.txt b/keywords.txt index 18ea117..3d0c912 100644 --- a/keywords.txt +++ b/keywords.txt @@ -69,6 +69,8 @@ getRevolutions KEYWORD2 resetPosition KEYWORD2 resetCumulativePosition KEYWORD2 +lastError KEYWORD2 + # CONFIGURATION FIELDS setPowerMode KEYWORD2 diff --git a/library.json b/library.json index 43d8e18..882b80a 100644 --- a/library.json +++ b/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/AS5600.git" }, - "version": "0.5.1", + "version": "0.5.2", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/library.properties b/library.properties index fbbab74..9457a9b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=AS5600 -version=0.5.1 +version=0.5.2 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for AS5600 and AS5600L magnetic rotation meter.