0.2.0 ACD10

This commit is contained in:
Rob Tillaart 2024-06-06 17:40:49 +02:00
parent c0ce4daea3
commit 6793ef4058
5 changed files with 11 additions and 7 deletions

View File

@ -2,7 +2,7 @@
// FILE: ACD10.cpp
// AUTHOR: Rob Tillaart
// DATE: 2023-09-25
// VERSION: 0.1.4
// VERSION: 0.2.0
// PURPOSE: Arduino library for for I2C ACD10 CO2 sensor
// URL: https://github.com/RobTillaart/ACD10
// http://www.aosong.com/en/products-77.html
@ -211,7 +211,7 @@ bool ACD10::setManualCalibration(uint16_t value)
{
if ((value < 400) || (value > 5000)) return false;
uint8_t buf[5] = { 0x52, 0x04, 0x00, 0x00, 0x00 };
buf[3] = value && 0xFF;
buf[3] = value & 0xFF;
buf[2] = value >> 8;
buf[4] = _crc8(&buf[2], 2);
_command(buf, 5);

View File

@ -3,7 +3,7 @@
// FILE: ACD10.h
// AUTHOR: Rob Tillaart
// DATE: 2023-09-25
// VERSION: 0.1.4
// VERSION: 0.2.0
// PURPOSE: Arduino library for for I2C ACD10 CO2 sensor
// URL: https://github.com/RobTillaart/ACD10
// http://www.aosong.com/en/products-77.html
@ -13,7 +13,7 @@
#include "Wire.h"
#define ACD10_LIB_VERSION (F("0.1.4"))
#define ACD10_LIB_VERSION (F("0.2.0"))
#define ACD10_DEFAULT_ADDRESS 0x2A
// ERROR CODES

View File

@ -6,10 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.2.0] - 2024-06-06
- fix #9 bitwise and bug
----
## [0.1.4] - 2024-01-25
- update readme.md
## [0.1.3] - 2024-01-01
- fix examples
- add multiplex demo

View File

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

View File

@ -1,5 +1,5 @@
name=ACD10
version=0.1.4
version=0.2.0
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for the ACD10 CO2 sensor.