mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.3 DHTINT
This commit is contained in:
parent
d137630419
commit
1008eefee1
@ -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
|
||||
# - esp8266
|
||||
# - mega2560
|
||||
- rpipico
|
||||
|
||||
|
23
libraries/DHTINT/CHANGELOG.md
Normal file
23
libraries/DHTINT/CHANGELOG.md
Normal file
@ -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
|
@ -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"
|
||||
|
@ -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
|
||||
|
61
libraries/DHTINT/keywords.txt
Normal file
61
libraries/DHTINT/keywords.txt
Normal file
@ -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
|
||||
|
@ -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": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=DHTINT
|
||||
version=0.1.2
|
||||
version=0.1.3
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for DHT temperature and humidity sensor. Integer only to save footprint.
|
||||
|
Loading…
Reference in New Issue
Block a user