mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.4.1 INA226
This commit is contained in:
parent
d5bd110d5a
commit
161ec39243
@ -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:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
@ -7,5 +22,7 @@ compile:
|
||||
# - leonardo
|
||||
- m4
|
||||
- esp32
|
||||
# - esp8266
|
||||
- esp8266
|
||||
# - mega2560
|
||||
- rpipico
|
||||
|
||||
|
@ -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
|
||||
setMaxCurrentShunt now returns an int indicating OK == 0
|
||||
otherwise error. See INA226.h for error codes.
|
||||
- updated readme.md
|
||||
- updated unit tests (error codes)
|
||||
|
||||
----
|
||||
|
||||
## 0.3.0 2022-07-01
|
||||
## [0.3.0] - 2022-07-01
|
||||
- fix #14 RESET FLAG
|
||||
- add getAddress()
|
||||
|
||||
----
|
||||
|
||||
## 0.2.0 2022-02-02
|
||||
## [0.2.0] - 2022-02-02
|
||||
- fix #11 normalize
|
||||
- fix #13 simplify sign handling shunt and current
|
||||
- add releaseNotes.md
|
||||
@ -26,36 +37,38 @@ thereby forcing the user to redo the calibration call with **setMaxCurrentShunt(
|
||||
- some edits in readme.md.
|
||||
- added **bool isCalibrated()**.
|
||||
|
||||
----
|
||||
|
||||
## 0.1.6 2021-12-20
|
||||
## [0.1.6] - 2021-12-20
|
||||
- update library.json,
|
||||
- license,
|
||||
- minor edits
|
||||
|
||||
## 0.1.5 2021-11-05
|
||||
## [0.1.5] - 2021-11-05
|
||||
- update build-CI,
|
||||
- add badges in readme.md
|
||||
- fix address in constructor
|
||||
|
||||
## 0.1.4 2021-08-07
|
||||
## [0.1.4] - 2021-08-07
|
||||
- fix getCurrent()
|
||||
|
||||
## 0.1.3 2021-06-22
|
||||
## [0.1.3] - 2021-06-22
|
||||
- add getCurrentLSB_uA()
|
||||
- improve examples
|
||||
- fix for calibration
|
||||
|
||||
## 0.1.2 2021-06-22
|
||||
## [0.1.2] - 2021-06-22
|
||||
- add check of parameters of several functions
|
||||
- add unit tests
|
||||
- add getShunt()
|
||||
- add getMaxCurrent()
|
||||
|
||||
## 0.1.1 2021-06-21
|
||||
## [0.1.1] - 2021-06-21
|
||||
- improved calibration
|
||||
- added functions
|
||||
|
||||
## 0.1.0 2021-05-18
|
||||
## [0.1.0] - 2021-05-18
|
||||
- initial version
|
||||
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
// FILE: INA226.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.4.0
|
||||
// VERSION: 0.4.1
|
||||
// DATE: 2021-05-18
|
||||
// PURPOSE: Arduino library for INA226 power sensor
|
||||
// URL: https://github.com/RobTillaart/INA226
|
||||
//
|
||||
// HISTORY: see releaseNotes.md
|
||||
// HISTORY: see changelog.md
|
||||
|
||||
|
||||
#include "INA226.h"
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
// FILE: INA226.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.4.0
|
||||
// VERSION: 0.4.1
|
||||
// DATE: 2021-05-18
|
||||
// PURPOSE: Arduino library for INA226 power sensor
|
||||
// URL: https://github.com/RobTillaart/INA226
|
||||
@ -14,7 +14,7 @@
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
#define INA226_LIB_VERSION (F("0.4.0"))
|
||||
#define INA226_LIB_VERSION (F("0.4.1"))
|
||||
|
||||
|
||||
// set by setAlertRegister
|
||||
|
@ -34,6 +34,8 @@ are connected to the SCL, SDA, GND and VCC pins.
|
||||
|
||||
See datasheet - table 2 - datasheet.
|
||||
|
||||
https://github.com/RobTillaart/INA219
|
||||
|
||||
|
||||
## About Measurements
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/INA226.git"
|
||||
},
|
||||
"version": "0.4.0",
|
||||
"version": "0.4.1",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=INA226
|
||||
version=0.4.0
|
||||
version=0.4.1
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for INA226 power sensor
|
||||
|
Loading…
Reference in New Issue
Block a user