mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.1 LTC2991
This commit is contained in:
parent
9b422fd170
commit
d05f16b938
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=LTC2991
|
||||
version=0.2.0
|
||||
version=0.2.1
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for LTC2991 temperature and voltage control IC
|
||||
|
Loading…
Reference in New Issue
Block a user