0.4.1 INA226

This commit is contained in:
rob tillaart 2022-11-14 18:55:30 +01:00
parent d5bd110d5a
commit 161ec39243
7 changed files with 51 additions and 19 deletions

View File

@ -1,3 +1,18 @@
platforms:
rpipico:
board: rp2040:rp2040:rpipico
package: rp2040:rp2040
gcc:
features:
defines:
- ARDUINO_ARCH_RP2040
warnings:
flags:
packages:
rp2040:rp2040:
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
compile: compile:
# Choosing to run compilation tests on 2 different Arduino platforms # Choosing to run compilation tests on 2 different Arduino platforms
platforms: platforms:
@ -7,5 +22,7 @@ compile:
# - leonardo # - leonardo
- m4 - m4
- esp32 - esp32
# - esp8266 - esp8266
# - mega2560 # - mega2560
- rpipico

View File

@ -1,22 +1,33 @@
# Change Log I2CKeyPad8x8
# INA226 library All notable changes to this project will be documented in this file.
## Release notes The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## 0.4.0 2022-08-XX
## [0.4.1] - 2022-11-12
- Add RP2040 support to build-CI.
- Add CHANGELOG.md - replaces release notes to be consistent over libraries.
- minor edit unit test
## [0.4.0] - 2022-08-26
- fix #16 - change error to warning for max current - fix #16 - change error to warning for max current
setMaxCurrentShunt now returns an int indicating OK == 0 setMaxCurrentShunt now returns an int indicating OK == 0
otherwise error. See INA226.h for error codes. otherwise error. See INA226.h for error codes.
- updated readme.md - updated readme.md
- updated unit tests (error codes) - updated unit tests (error codes)
----
## 0.3.0 2022-07-01 ## [0.3.0] - 2022-07-01
- fix #14 RESET FLAG - fix #14 RESET FLAG
- add getAddress() - add getAddress()
----
## 0.2.0 2022-02-02 ## [0.2.0] - 2022-02-02
- fix #11 normalize - fix #11 normalize
- fix #13 simplify sign handling shunt and current - fix #13 simplify sign handling shunt and current
- add releaseNotes.md - add releaseNotes.md
@ -26,36 +37,38 @@ thereby forcing the user to redo the calibration call with **setMaxCurrentShunt(
- some edits in readme.md. - some edits in readme.md.
- added **bool isCalibrated()**. - added **bool isCalibrated()**.
----
## 0.1.6 2021-12-20 ## [0.1.6] - 2021-12-20
- update library.json, - update library.json,
- license, - license,
- minor edits - minor edits
## 0.1.5 2021-11-05 ## [0.1.5] - 2021-11-05
- update build-CI, - update build-CI,
- add badges in readme.md - add badges in readme.md
- fix address in constructor - fix address in constructor
## 0.1.4 2021-08-07 ## [0.1.4] - 2021-08-07
- fix getCurrent() - fix getCurrent()
## 0.1.3 2021-06-22 ## [0.1.3] - 2021-06-22
- add getCurrentLSB_uA() - add getCurrentLSB_uA()
- improve examples - improve examples
- fix for calibration - fix for calibration
## 0.1.2 2021-06-22 ## [0.1.2] - 2021-06-22
- add check of parameters of several functions - add check of parameters of several functions
- add unit tests - add unit tests
- add getShunt() - add getShunt()
- add getMaxCurrent() - add getMaxCurrent()
## 0.1.1 2021-06-21 ## [0.1.1] - 2021-06-21
- improved calibration - improved calibration
- added functions - added functions
## 0.1.0 2021-05-18 ## [0.1.0] - 2021-05-18
- initial version - initial version

View File

@ -1,11 +1,11 @@
// FILE: INA226.cpp // FILE: INA226.cpp
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.4.0 // VERSION: 0.4.1
// DATE: 2021-05-18 // DATE: 2021-05-18
// PURPOSE: Arduino library for INA226 power sensor // PURPOSE: Arduino library for INA226 power sensor
// URL: https://github.com/RobTillaart/INA226 // URL: https://github.com/RobTillaart/INA226
// //
// HISTORY: see releaseNotes.md // HISTORY: see changelog.md
#include "INA226.h" #include "INA226.h"

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
// FILE: INA226.h // FILE: INA226.h
// AUTHOR: Rob Tillaart // AUTHOR: Rob Tillaart
// VERSION: 0.4.0 // VERSION: 0.4.1
// DATE: 2021-05-18 // DATE: 2021-05-18
// PURPOSE: Arduino library for INA226 power sensor // PURPOSE: Arduino library for INA226 power sensor
// URL: https://github.com/RobTillaart/INA226 // URL: https://github.com/RobTillaart/INA226
@ -14,7 +14,7 @@
#include "Wire.h" #include "Wire.h"
#define INA226_LIB_VERSION (F("0.4.0")) #define INA226_LIB_VERSION (F("0.4.1"))
// set by setAlertRegister // set by setAlertRegister

View File

@ -34,6 +34,8 @@ are connected to the SCL, SDA, GND and VCC pins.
See datasheet - table 2 - datasheet. See datasheet - table 2 - datasheet.
https://github.com/RobTillaart/INA219
## About Measurements ## About Measurements

View File

@ -15,7 +15,7 @@
"type": "git", "type": "git",
"url": "https://github.com/RobTillaart/INA226.git" "url": "https://github.com/RobTillaart/INA226.git"
}, },
"version": "0.4.0", "version": "0.4.1",
"license": "MIT", "license": "MIT",
"frameworks": "arduino", "frameworks": "arduino",
"platforms": "*", "platforms": "*",

View File

@ -1,5 +1,5 @@
name=INA226 name=INA226
version=0.4.0 version=0.4.1
author=Rob Tillaart <rob.tillaart@gmail.com> author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com> maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for INA226 power sensor sentence=Arduino library for INA226 power sensor