Skip to content

Commit

Permalink
Develop (#2)
Browse files Browse the repository at this point in the history
* add changelog.md
* update readme.md
  • Loading branch information
RobTillaart authored Nov 14, 2022
1 parent a98a6c5 commit 05ac64c
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 11 deletions.
19 changes: 18 additions & 1 deletion .arduino-ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -7,5 +22,7 @@ compile:
# - leonardo
- m4
- esp32
# - esp8266
- esp8266
# - mega2560
- rpipico

20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Change Log INA219

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [0.1.2] - 2022-11-14
- Add RP2040 support to build-CI.
- Add CHANGELOG.md


## [0.1.1] - 2022-09-06
- refactor and first public release

## [0.1.0] - 2021-05-18
- initial version


6 changes: 2 additions & 4 deletions INA219.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// FILE: INA219.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// VERSION: 0.1.2
// DATE: 2021-05-18
// PURPOSE: Arduino library for INA219 voltage, current and power sensor
// URL: https://github.com/RobTillaart/INA219
//
// HISTORY:
// 0.1.0 2021-05-18 initial version
// 0.1.1 2022-09-06 refactor and first public release
// HISTORY: see changelog.md


#include "INA219.h"
Expand Down
6 changes: 3 additions & 3 deletions INA219.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
// FILE: INA219.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// VERSION: 0.1.2
// DATE: 2021-05-18
// PURPOSE: Arduino library for INA219 voltage, current and power sensor
// URL: https://github.com/RobTillaart/INA219
Expand All @@ -14,7 +14,7 @@
#include "Wire.h"


#define INA219_LIB_VERSION (F("0.1.1"))
#define INA219_LIB_VERSION (F("0.1.2"))


class INA219
Expand Down Expand Up @@ -91,7 +91,7 @@ class INA219
float getMaxCurrent() { return _maxCurrent; };


// DEBUG
// DEBUG
uint16_t getRegister(uint8_t reg) { return _readRegister(reg); };


Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Maxima, see datasheet, chapter 7, esp 7.5
- µ == micro = ALT-0181 (Windows)


Relates to https://github.com/RobTillaart/INA226


## I2C

#### Address
Expand Down
1 change: 0 additions & 1 deletion keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ getShuntVoltage_uV KEYWORD2
getCurrent_uA KEYWORD2
getPower_uW KEYWORD2


reset KEYWORD2
setBusVoltageRange KEYWORD2
getBusVoltageRange KEYWORD2
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/INA219.git"
},
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=INA219
version=0.1.1
version=0.1.2
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=Arduino library for INA219 voltage, current and power sensor.
Expand Down

0 comments on commit 05ac64c

Please sign in to comment.