mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.0 ACD10
This commit is contained in:
parent
c0ce4daea3
commit
6793ef4058
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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": "*",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user