0.3.9 HX711

This commit is contained in:
Rob Tillaart 2023-11-05 10:05:10 +01:00
parent 8897792d39
commit 5b5716fa90
6 changed files with 17 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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 @@ public:
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 @@ private:
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;

View File

@ -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
@ -364,13 +365,13 @@ See https://github.com/RobTillaart/HX711/issues/40
#### Must
- update documentation HX711
- test B channel explicitly.
- test reset and reboot behaviours.
- keep in sync with HX711_MP
#### Should
- test B channel explicitly.
- test reset and reboot behaviours.
- investigate read()
- investigate the need of yield after interrupts
- investigate blocking loop at begin => less yield() calls ?

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/HX711"
},
"version": "0.3.8",
"version": "0.3.9",
"license": "MIT",
"frameworks": "*",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=HX711
version=0.3.8
version=0.3.9
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for HX711 load cell amplifier