diff --git a/libraries/LTC2991/CHANGELOG.md b/libraries/LTC2991/CHANGELOG.md index 3ad3bb58..a121e568 100644 --- a/libraries/LTC2991/CHANGELOG.md +++ b/libraries/LTC2991/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.2.1] - 2024-01-03 +- fix examples +- minor edits + + ## [0.2.0] - 2023-12-04 - refactor API, remove ESP32 specific code - update readme.md diff --git a/libraries/LTC2991/LICENSE b/libraries/LTC2991/LICENSE index 088bbaf1..3afaaeda 100644 --- a/libraries/LTC2991/LICENSE +++ b/libraries/LTC2991/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021-2023 Rob Tillaart +Copyright (c) 2021-2024 Rob Tillaart Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/libraries/LTC2991/LTC2991.cpp b/libraries/LTC2991/LTC2991.cpp index 4fd271b7..01862bc0 100644 --- a/libraries/LTC2991/LTC2991.cpp +++ b/libraries/LTC2991/LTC2991.cpp @@ -1,7 +1,7 @@ // // FILE: LTC2991.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.2.0 +// VERSION: 0.2.1 // DATE: 2021-05-10 // PURPOSE: Library for LTC2991 temperature and voltage control IC // URL: https://github.com/RobTillaart/LTC2991 diff --git a/libraries/LTC2991/LTC2991.h b/libraries/LTC2991/LTC2991.h index d1cfb700..1ca74ad6 100644 --- a/libraries/LTC2991/LTC2991.h +++ b/libraries/LTC2991/LTC2991.h @@ -2,7 +2,7 @@ // // FILE: LTC2991.h // AUTHOR: Rob Tillaart -// VERSION: 0.2.0 +// VERSION: 0.2.1 // DATE: 2021-05-10 // PURPOSE: Library for LTC2991 temperature and voltage control IC // URL: https://github.com/RobTillaart/LTC2991 @@ -12,10 +12,10 @@ #include "Wire.h" -#define LTC2991_LIB_VERSION (F("0.2.0")) +#define LTC2991_LIB_VERSION (F("0.2.1")) // -// DEFINES for readability +// DEFINES for readability // #define LTC2991_NEW_DATA 0x01 #define LTC2991_NO_DATA 0x00 @@ -56,7 +56,7 @@ class LTC2991 public: explicit LTC2991(const uint8_t address, TwoWire *wire = &Wire); - bool begin(); + bool begin(); bool isConnected(); uint8_t getAddress(); diff --git a/libraries/LTC2991/examples/LTC2991_PWM/LTC2991_PWM.ino b/libraries/LTC2991/examples/LTC2991_PWM/LTC2991_PWM.ino index b4ee8a75..1599a070 100644 --- a/libraries/LTC2991/examples/LTC2991_PWM/LTC2991_PWM.ino +++ b/libraries/LTC2991/examples/LTC2991_PWM/LTC2991_PWM.ino @@ -1,7 +1,8 @@ // // FILE: LTC2991_PWM.ino // AUTHOR: Rob Tillaart -// PUPROSE: demo +// PURPOSE: demo +// URL: https://github.com/RobTillaart/LTC2991 #include "Wire.h" @@ -19,8 +20,9 @@ void setup() { Serial.begin(115200); Serial.println(__FILE__); - Serial.print("LTC2991_LIB_VERSION:\t"); + Serial.print("LTC2991_LIB_VERSION: "); Serial.println(LTC2991_LIB_VERSION); + Serial.println(); Wire.begin(); Wire.setClock(100000); diff --git a/libraries/LTC2991/examples/LTC2991_demo/LTC2991_demo.ino b/libraries/LTC2991/examples/LTC2991_demo/LTC2991_demo.ino index 8a76fe5a..05240e32 100644 --- a/libraries/LTC2991/examples/LTC2991_demo/LTC2991_demo.ino +++ b/libraries/LTC2991/examples/LTC2991_demo/LTC2991_demo.ino @@ -1,7 +1,8 @@ // // FILE: LTC2991_demo.ino // AUTHOR: Rob Tillaart -// PUPROSE: detect device on I2C bus +// PURPOSE: detect device on I2C bus +// URL: https://github.com/RobTillaart/LTC2991 #include "Wire.h" @@ -14,13 +15,13 @@ void setup() { Serial.begin(115200); Serial.println(__FILE__); - Serial.print("LTC2991_LIB_VERSION:\t"); + Serial.print("LTC2991_LIB_VERSION: "); Serial.println(LTC2991_LIB_VERSION); + Serial.println(); Wire.begin(); Wire.setClock(100000); LTC.begin(); - } @@ -35,7 +36,7 @@ void loop() Serial.print(millis()); Serial.print("\taddress: "); Serial.println(LTC.getAddress()); - + delay(2000); } diff --git a/libraries/LTC2991/examples/LTC2991_internal_temp_volt/LTC2991_internal_temp_volt.ino b/libraries/LTC2991/examples/LTC2991_internal_temp_volt/LTC2991_internal_temp_volt.ino index e0f21711..2456f980 100644 --- a/libraries/LTC2991/examples/LTC2991_internal_temp_volt/LTC2991_internal_temp_volt.ino +++ b/libraries/LTC2991/examples/LTC2991_internal_temp_volt/LTC2991_internal_temp_volt.ino @@ -1,7 +1,8 @@ // // FILE: LTC2991_internal_temp_volt.ino // AUTHOR: Rob Tillaart -// PUPROSE: demo monitoring Tinternal and VCC +// PURPOSE: demo monitoring Tinternal and VCC +// URL: https://github.com/RobTillaart/LTC2991 #include "Wire.h" @@ -14,8 +15,9 @@ void setup() { Serial.begin(115200); Serial.println(__FILE__); - Serial.print("LTC2991_LIB_VERSION:\t"); + Serial.print("LTC2991_LIB_VERSION: "); Serial.println(LTC2991_LIB_VERSION); + Serial.println(); Wire.begin(); Wire.setClock(100000); @@ -29,7 +31,7 @@ void setup() LTC.enable_Tintern_Vcc(true); LTC.set_Kelvin_Tintern(); - // to get multiple readings in loop() + // to get multiple readings in loop() LTC.set_acquisition_repeat(); } diff --git a/libraries/LTC2991/examples/LTC2991_read_temperature/LTC2991_read_temperature.ino b/libraries/LTC2991/examples/LTC2991_read_temperature/LTC2991_read_temperature.ino index 9521580e..8f12d9ba 100644 --- a/libraries/LTC2991/examples/LTC2991_read_temperature/LTC2991_read_temperature.ino +++ b/libraries/LTC2991/examples/LTC2991_read_temperature/LTC2991_read_temperature.ino @@ -1,7 +1,8 @@ // // FILE: LTC2991_read_temperature.ino // AUTHOR: Rob Tillaart -// PUPROSE: demo +// PURPOSE: demo +// URL: https://github.com/RobTillaart/LTC2991 #include "Wire.h" @@ -15,8 +16,9 @@ void setup() { Serial.begin(115200); Serial.println(__FILE__); - Serial.print("LTC2991_LIB_VERSION:\t"); + Serial.print("LTC2991_LIB_VERSION: "); Serial.println(LTC2991_LIB_VERSION); + Serial.println(); Wire.begin(); Wire.setClock(100000); diff --git a/libraries/LTC2991/examples/LTC2991_read_voltage/LTC2991_read_voltage.ino b/libraries/LTC2991/examples/LTC2991_read_voltage/LTC2991_read_voltage.ino index a47ae078..5a839c22 100644 --- a/libraries/LTC2991/examples/LTC2991_read_voltage/LTC2991_read_voltage.ino +++ b/libraries/LTC2991/examples/LTC2991_read_voltage/LTC2991_read_voltage.ino @@ -1,7 +1,8 @@ // // FILE: LTC2991_read_voltage.ino // AUTHOR: Rob Tillaart -// PUPROSE: demo +// PURPOSE: demo +// URL: https://github.com/RobTillaart/LTC2991 #include "Wire.h" @@ -15,8 +16,9 @@ void setup() { Serial.begin(115200); Serial.println(__FILE__); - Serial.print("LTC2991_LIB_VERSION:\t"); + Serial.print("LTC2991_LIB_VERSION: "); Serial.println(LTC2991_LIB_VERSION); + Serial.println(); Wire.begin(); Wire.setClock(100000); diff --git a/libraries/LTC2991/library.json b/libraries/LTC2991/library.json index d1996e30..a7d50526 100644 --- a/libraries/LTC2991/library.json +++ b/libraries/LTC2991/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/LTC2991.git" }, - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/LTC2991/library.properties b/libraries/LTC2991/library.properties index e5bebe36..ad27efdc 100644 --- a/libraries/LTC2991/library.properties +++ b/libraries/LTC2991/library.properties @@ -1,5 +1,5 @@ name=LTC2991 -version=0.2.0 +version=0.2.1 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for LTC2991 temperature and voltage control IC