From 1cdaa2f6e66d48225a6f392a77725abf32c7686a Mon Sep 17 00:00:00 2001 From: Rob Tillaart Date: Sun, 5 Nov 2023 10:03:25 +0100 Subject: [PATCH] update readme.md (#44) - update readme.md - minor edits --- CHANGELOG..md | 8 ++++++-- HX711.cpp | 2 +- HX711.h | 8 ++++---- README.md | 5 +++-- library.json | 2 +- library.properties | 2 +- 6 files changed, 16 insertions(+), 11 deletions(-) diff --git a/CHANGELOG..md b/CHANGELOG..md index 958ffe0..89c505f 100644 --- a/CHANGELOG..md +++ b/CHANGELOG..md @@ -5,7 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [0.3.8] - 2023-08-?? +## [0.3.9] - 2023-11-04 +- update readme.md +- minor edits + + +## [0.3.8] - 2023-08-26 - fix #41 #40 add example **HX_loadcell_array.ino** - test support array of loadcells. - update readme.md @@ -13,7 +18,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - add PlatformIO badge - minor edits - ## [0.3.7] - 2023-06-27 - add example to measure noise level - moved code to .cpp diff --git a/HX711.cpp b/HX711.cpp index 289df9e..be7f361 100644 --- a/HX711.cpp +++ b/HX711.cpp @@ -1,7 +1,7 @@ // // FILE: HX711.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.3.8 +// VERSION: 0.3.9 // PURPOSE: Library for load cells for UNO // URL: https://github.com/RobTillaart/HX711 diff --git a/HX711.h b/HX711.h index 62eaab4..1c98b39 100644 --- a/HX711.h +++ b/HX711.h @@ -2,7 +2,7 @@ // // FILE: HX711.h // AUTHOR: Rob Tillaart -// VERSION: 0.3.8 +// VERSION: 0.3.9 // PURPOSE: Library for load cells for Arduino // URL: https://github.com/RobTillaart/HX711 // @@ -13,7 +13,7 @@ #include "Arduino.h" -#define HX711_LIB_VERSION (F("0.3.8")) +#define HX711_LIB_VERSION (F("0.3.9")) const uint8_t HX711_AVERAGE_MODE = 0x00; @@ -145,7 +145,7 @@ class HX711 uint32_t last_read(); - // PRICING (idem calories?) + // PRICING float get_price(uint8_t times = 1) { return get_units(times) * _price; }; void set_unit_price(float price = 1.0) { _price = price; }; float get_unit_price() { return _price; }; @@ -155,7 +155,7 @@ class HX711 uint8_t _dataPin; uint8_t _clockPin; - uint8_t _gain = 128; // default channel A + uint8_t _gain = 128; // default channel A long _offset = 0; float _scale = 1; uint32_t _lastRead = 0; diff --git a/README.md b/README.md index de635d8..378cf57 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ - [![Arduino CI](https://github.com/RobTillaart/HX711/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino-lint](https://github.com/RobTillaart/HX711/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/HX711/actions/workflows/arduino-lint.yml) [![JSON check](https://github.com/RobTillaart/HX711/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/HX711/actions/workflows/jsoncheck.yml) @@ -78,7 +77,9 @@ For now one can add an IOpin for this and use **digitalWrite()**. #### Related +- https://github.com/bogde/HX711 - https://github.com/RobTillaart/weight (conversions kg <> stone etc.) +- https://github.com/RobTillaart/HX711 - https://github.com/RobTillaart/HX711_MP @@ -383,7 +384,7 @@ See https://github.com/RobTillaart/HX711/issues/40 - add examples - example the adding scale - void weight_clr(), void weight_add(), float weight_get() - adding scale -- decide pricing keep/not => move to .cpp +- decide pricing keep/not => move to .cpp - add **setRate()** and **getRate()** - optional? diff --git a/library.json b/library.json index 97adbb3..4c9edca 100644 --- a/library.json +++ b/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/HX711" }, - "version": "0.3.8", + "version": "0.3.9", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/library.properties b/library.properties index df303bc..a6f03ba 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=HX711 -version=0.3.8 +version=0.3.9 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for HX711 load cell amplifier