From 1008eefee1c466d5a56806ea126282b61af35b5b Mon Sep 17 00:00:00 2001 From: rob tillaart Date: Wed, 2 Nov 2022 11:22:23 +0100 Subject: [PATCH] 0.1.3 DHTINT --- libraries/DHTINT/.arduino-ci.yml | 27 ++++++++++--- libraries/DHTINT/CHANGELOG.md | 23 +++++++++++ libraries/DHTINT/dhtint.cpp | 5 +-- libraries/DHTINT/dhtint.h | 18 ++++----- libraries/DHTINT/keywords.txt | 61 +++++++++++++++++++++++++++++ libraries/DHTINT/library.json | 2 +- libraries/DHTINT/library.properties | 2 +- 7 files changed, 118 insertions(+), 20 deletions(-) create mode 100644 libraries/DHTINT/CHANGELOG.md create mode 100644 libraries/DHTINT/keywords.txt diff --git a/libraries/DHTINT/.arduino-ci.yml b/libraries/DHTINT/.arduino-ci.yml index fa920b20..10c0e10b 100644 --- a/libraries/DHTINT/.arduino-ci.yml +++ b/libraries/DHTINT/.arduino-ci.yml @@ -1,11 +1,28 @@ +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: - uno - - due - - zero - - leonardo + # - due + # - zero + # - leonardo - m4 - esp32 - - esp8266 - - mega2560 \ No newline at end of file + # - esp8266 + # - mega2560 + - rpipico + diff --git a/libraries/DHTINT/CHANGELOG.md b/libraries/DHTINT/CHANGELOG.md new file mode 100644 index 00000000..c7208df3 --- /dev/null +++ b/libraries/DHTINT/CHANGELOG.md @@ -0,0 +1,23 @@ +# Change Log DHTINT + +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.1.3] - 2022-11-02 +- add changelog.md +- add rp2040 to build-CI +- add keywords.txt + + +## [0.1.2] - 2022-05-12 +- fix #2 - add decimal offset support +- fix float bug + +## [0.1.1] - 2022-05-11 +- add getRawTemperature() and getRawHumidity() + +## [0.1.0] - 2022-05-08 +- initial version based upon DHTNEW diff --git a/libraries/DHTINT/dhtint.cpp b/libraries/DHTINT/dhtint.cpp index b6ad2623..2765733a 100644 --- a/libraries/DHTINT/dhtint.cpp +++ b/libraries/DHTINT/dhtint.cpp @@ -5,10 +5,7 @@ // PURPOSE: Arduino library for DHT sensors - integer only // URL: https://github.com/RobTillaart/DHTINT // -// HISTORY: -// 0.1.0 2022-05-08 initial version based upon DHTNEW -// 0.1.1 2022-05-11 add getRawTemperature() and getRawHumidity() -// 0.1.2 2022-05-12 fix #2 - add decimal offset support + fix float bug +// HISTORY: see changelog.md #include "dhtint.h" diff --git a/libraries/DHTINT/dhtint.h b/libraries/DHTINT/dhtint.h index 22654fa9..e45e0b45 100644 --- a/libraries/DHTINT/dhtint.h +++ b/libraries/DHTINT/dhtint.h @@ -2,24 +2,24 @@ // // FILE: dhtint.h // AUTHOR: Rob Tillaart -// VERSION: 0.1.2 +// VERSION: 0.1.3 // PURPOSE: Arduino library for DHT sensors - integer only // URL: https://github.com/RobTillaart/DHTINT -// DHT PIN layout from left to right -// ================================= -// FRONT : DESCRIPTION -// pin 1 : VCC -// pin 2 : DATA -// pin 3 : Not Connected -// pin 4 : GND +// DHT PIN layout from left to right +// ================================= +// FRONT : DESCRIPTION +// pin 1 : VCC +// pin 2 : DATA +// pin 3 : Not Connected +// pin 4 : GND #include "Arduino.h" -#define DHTINT_LIB_VERSION (F("0.1.2 experimental")) +#define DHTINT_LIB_VERSION (F("0.1.3 experimental")) #define DHTLIB_OK 0 diff --git a/libraries/DHTINT/keywords.txt b/libraries/DHTINT/keywords.txt new file mode 100644 index 00000000..fd774134 --- /dev/null +++ b/libraries/DHTINT/keywords.txt @@ -0,0 +1,61 @@ +# Syntax Colouring Map For DHTINT + + +# Data types (KEYWORD1) +DHTINT KEYWORD1 + + +# Methods and Functions (KEYWORD2) +reset KEYWORD2 +getType KEYWORD2 +setType() KEYWORD2 +read KEYWORD2 +lastRead KEYWORD2 + +getHumidity KEYWORD2 +getTemperature KEYWORD2 + +setHumOffset KEYWORD2 +setTempOffset KEYWORD2 +getHumOffset KEYWORD2 +getTempOffset KEYWORD2 + +getDisableIRQ KEYWORD2 +setDisableIRQ KEYWORD2 + +getWaitForReading KEYWORD2 +setWaitForReading KEYWORD2 +getSuppressError KEYWORD2 +setSuppressError KEYWORD2 + +getReadDelay KEYWORD2 +setReadDelay KEYWORD2 + +powerUp KEYWORD2 +powerDown KEYWORD2 + + +# Instances (KEYWORD2) + + +# Constants (LITERAL1) +DHTINT_LIB_VERSION LITERAL1 +DHTLIB_OK LITERAL1 + +DHTLIB_ERROR_CHECKSUM LITERAL1 +DHTLIB_ERROR_BIT_SHIFT LITERAL1 +DHTLIB_INVALID_VALUE LITERAL1 + +DHTLIB_TIMEOUT LITERAL1 +DHTLIB_ERROR_TIMEOUT_A LITERAL1 +DHTLIB_ERROR_TIMEOUT_B LITERAL1 +DHTLIB_ERROR_TIMEOUT_C LITERAL1 +DHTLIB_ERROR_TIMEOUT_D LITERAL1 +DHTLIB_ERROR_SENSOR_NOT_READY LITERAL1 +DHTLIB_WAITING_FOR_READ LITERAL1 +DHTLIB_BIT_THRESHOLD LITERAL1 + +DHTLIB_VALUE_OUT_OF_RANGE LITERAL1 +DHTLIB_HUMIDITY_OUT_OF_RANGE LITERAL1 +DHTLIB_TEMPERATURE_OUT_OF_RANGE LITERAL1 + diff --git a/libraries/DHTINT/library.json b/libraries/DHTINT/library.json index 7f13cdc0..2da2b47a 100644 --- a/libraries/DHTINT/library.json +++ b/libraries/DHTINT/library.json @@ -13,7 +13,7 @@ "type": "git", "url": "https://github.com/RobTillaart/DHTINT.git" }, - "version": "0.1.2", + "version": "0.1.3", "license": "MIT", "frameworks": "arduino", "platforms": "*", diff --git a/libraries/DHTINT/library.properties b/libraries/DHTINT/library.properties index dbce30f9..13e16bca 100644 --- a/libraries/DHTINT/library.properties +++ b/libraries/DHTINT/library.properties @@ -1,5 +1,5 @@ name=DHTINT -version=0.1.2 +version=0.1.3 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for DHT temperature and humidity sensor. Integer only to save footprint.