0.3.2 I2C_ASDX

This commit is contained in:
rob tillaart 2022-11-12 15:43:08 +01:00
parent 882289ee55
commit 94bbde3ef9
7 changed files with 68 additions and 31 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:
# Choosing to run compilation tests on 2 different Arduino platforms
platforms:
@ -9,3 +24,5 @@ compile:
- esp32
# - esp8266
# - mega2560
- rpipico

View File

@ -0,0 +1,40 @@
# Change Log I2C_ASDX
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.3.2]
- add changelog.md
- add RP2040 to build-CI
- clean unit test a bit
- minor edits
## [0.3.0] - 2021-06-07
- add multiWire interface
## [0.3.1] - 2021-12-19
- update library.json, license, minor edits
----
## [0.2.3 - 2021-06-06
- add different units to read pressure
## [0.2.2 - 2020-12-29
- add Arduino-CI + unit test (minimal)
- update keywords
## [0.2.1 - 2020-07-04
- add getBar(), getMilliBar(), getPSI()
## [0.2.0 - 2020-03-18
- refactor
----
## [0.1.0] - 2013-11-14
- initial version

View File

@ -1,18 +1,11 @@
//
// FILE: I2C_ASDX.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.3.1
// VERSION: 0.3.2
// PURPOSE: I2C_asdx library for Arduino.
// URL: https://github.com/RobTillaart/I2C_ASDX
//
// HISTORY:
// 0.1.0 2013-11-14 initial version
// 0.2.0 2020-03-18 refactor
// 0.2.1 2020-07-04 add getBar(), getMilliBar(), getPSI()
// 0.2.2 2020-12-29 add Arduino-CI + unit test (minimal), keywords update.
// 0.2.3 2021-06-06 add different units to read pressure
// 0.3.0 2021-06-07 add multiWire interface
// 0.3.1 2021-12-19 update library.json, license, minor edits
// HISTORY: see changelog.md
#include "I2C_ASDX.h"

View File

@ -2,11 +2,11 @@
//
// FILE: I2C_ASDX.h
// AUTHOR: Rob Tillaart
// VERSION: 0.3.1
// VERSION: 0.3.2
// PURPOSE: Arduino library for I2C ASDX pressure sensor
// URL: https://github.com/RobTillaart/I2C_ASDX
//
// HISTORY: See I2C_ASDX.cpp
// HISTORY: see changelog.md
// TESTED TYPES - type A 10% - 90% only
//
@ -25,7 +25,7 @@
#include "Arduino.h"
#define I2C_ASDX_VERSION (F("0.3.1"))
#define I2C_ASDX_VERSION (F("0.3.2"))
// factors to convert PSI to mBar and back

View File

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

View File

@ -1,5 +1,5 @@
name=I2C_ASDX
version=0.3.1
version=0.3.2
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for I2C ASDX pressure sensor

View File

@ -29,13 +29,13 @@
// assertNAN(arg); // isnan(a)
// assertNotNAN(arg); // !isnan(a)
#include <ArduinoUnitTests.h>
#include "Arduino.h"
#include "I2C_ASDX.h"
unittest_setup()
{
fprintf(stderr, "I2C_ASDX_VERSION: %s\n", (char *) I2C_ASDX_VERSION);
@ -45,19 +45,6 @@ unittest_teardown()
{
}
/*
unittest(test_new_operator)
{
assertEqualINF(exp(800));
assertEqualINF(0.0/0.0);
assertEqualINF(42);
assertEqualNAN(INFINITY - INFINITY);
assertEqualNAN(0.0/0.0);
assertEqualNAN(42);
}
*/
unittest(test_constructor)
{