Skip to content
This repository was archived by the owner on May 27, 2020. It is now read-only.

Commit 44ec96d

Browse files
author
Toni Klopfenstein
committed
Squashed 'Libraries/Arduino/' content from commit db0d027
git-subtree-dir: Libraries/Arduino git-subtree-split: db0d027d4c8ff2eca0a532afa359a7c6fcbcc55f
0 parents  commit 44ec96d

File tree

9 files changed

+599
-0
lines changed

9 files changed

+599
-0
lines changed

.gitattributes

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain
23+

.gitignore

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
#################
2+
## Eclipse
3+
#################
4+
5+
*.pydevproject
6+
.project
7+
.metadata
8+
bin/
9+
tmp/
10+
*.tmp
11+
*.bak
12+
*.swp
13+
*~.nib
14+
local.properties
15+
.classpath
16+
.settings/
17+
.loadpath
18+
19+
# External tool builders
20+
.externalToolBuilders/
21+
22+
# Locally stored "Eclipse launch configurations"
23+
*.launch
24+
25+
# CDT-specific
26+
.cproject
27+
28+
# PDT-specific
29+
.buildpath
30+
31+
32+
#############
33+
## Eagle
34+
#############
35+
36+
# Ignore the board and schematic backup files
37+
*.b#?
38+
*.s#?
39+
40+
41+
#################
42+
## Visual Studio
43+
#################
44+
45+
## Ignore Visual Studio temporary files, build results, and
46+
## files generated by popular Visual Studio add-ons.
47+
48+
# User-specific files
49+
*.suo
50+
*.user
51+
*.sln.docstates
52+
53+
# Build results
54+
[Dd]ebug/
55+
[Rr]elease/
56+
*_i.c
57+
*_p.c
58+
*.ilk
59+
*.meta
60+
*.obj
61+
*.pch
62+
*.pdb
63+
*.pgc
64+
*.pgd
65+
*.rsp
66+
*.sbr
67+
*.tlb
68+
*.tli
69+
*.tlh
70+
*.tmp
71+
*.vspscc
72+
.builds
73+
*.dotCover
74+
75+
## TODO: If you have NuGet Package Restore enabled, uncomment this
76+
#packages/
77+
78+
# Visual C++ cache files
79+
ipch/
80+
*.aps
81+
*.ncb
82+
*.opensdf
83+
*.sdf
84+
85+
# Visual Studio profiler
86+
*.psess
87+
*.vsp
88+
89+
# ReSharper is a .NET coding add-in
90+
_ReSharper*
91+
92+
# Installshield output folder
93+
[Ee]xpress
94+
95+
# DocProject is a documentation generator add-in
96+
DocProject/buildhelp/
97+
DocProject/Help/*.HxT
98+
DocProject/Help/*.HxC
99+
DocProject/Help/*.hhc
100+
DocProject/Help/*.hhk
101+
DocProject/Help/*.hhp
102+
DocProject/Help/Html2
103+
DocProject/Help/html
104+
105+
# Click-Once directory
106+
publish
107+
108+
# Others
109+
[Bb]in
110+
[Oo]bj
111+
sql
112+
TestResults
113+
*.Cache
114+
ClientBin
115+
stylecop.*
116+
~$*
117+
*.dbmdl
118+
Generated_Code #added for RIA/Silverlight projects
119+
120+
# Backup & report files from converting an old project file to a newer
121+
# Visual Studio version. Backup files are not needed, because we have git ;-)
122+
_UpgradeReport_Files/
123+
Backup*/
124+
UpgradeLog*.XML
125+
126+
127+
############
128+
## Windows
129+
############
130+
131+
# Windows image file caches
132+
Thumbs.db
133+
134+
# Folder config file
135+
Desktop.ini
136+
137+
138+
#############
139+
## Python
140+
#############
141+
142+
*.py[co]
143+
144+
# Packages
145+
*.egg
146+
*.egg-info
147+
dist
148+
build
149+
eggs
150+
parts
151+
bin
152+
var
153+
sdist
154+
develop-eggs
155+
.installed.cfg
156+
157+
# Installer logs
158+
pip-log.txt
159+
160+
# Unit test / coverage reports
161+
.coverage
162+
.tox
163+
164+
#Translations
165+
*.mo
166+
167+
#Mr Developer
168+
.mr.developer.cfg
169+
170+
# Mac crap
171+
.DS_Store
172+

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
License Information
3+
-------------------
4+
5+
The hardware is released under [Creative Commons Share-alike 3.0](http://creativecommons.org/licenses/by-sa/3.0/).
6+
7+
All other code is open source so please feel free to do anything you want with it; you buy me a beer if you use this and we meet someday ([Beerware license](http://en.wikipedia.org/wiki/Beerware)).
8+
9+

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
SparkFun Humidity and Temperature Sensor Breakout - HTU21D
2+
===========================================================
3+
4+
5+
![SparkFun Humidity and Temperature Sensor Breakout - HTU21D](https://dlnmh9ip6v2uc.cloudfront.net/images/products/1/2/0/6/4/12064-04.jpg)
6+
7+
[*SparkFun Humidity and Temperature Sensor Breakout - HTU21D (SEN-12064)*](https://www.sparkfun.com/products/12064)
8+
9+
This is a breadboard friendly breakout board for the Measurement Specialties high-precision, low-power digital humidity sensor.
10+
11+
Repository Contents
12+
-------------------
13+
14+
* **/examples** - Example sketches for the library (.ino). Run these from the Arduino IDE.
15+
* **/src** - Source files for the library (.cpp, .h).
16+
* **keywords.txt** - Keywords from this library that will be highlighted in the Arduino IDE.
17+
* **library.properties** - General library properties for the Arduino package manager.
18+
19+
Documentation
20+
--------------
21+
22+
* **[Installing an Arduino Library Guide](https://learn.sparkfun.com/tutorials/installing-an-arduino-library)** - Basic information on how to install an Arduino library.
23+
* **[Product Repository](https://github.com/sparkfun/HTU21D_Breakout)** - Main repository (including hardware files) for the HTU21D breakout board.
24+
* **[Hookup Guide](https://learn.sparkfun.com/tutorials/htu21d-humidity-sensor-hookup-guide?_ga=1.239533187.1678495895.1378918345)** - Basic hookup guide for the HTU21D breakout board.
25+
26+
27+
License Information
28+
-------------------
29+
30+
This product is _**open source**_!
31+
32+
The **code** is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!
33+
34+
Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.
35+
36+
Distributed as-is; no warranty is given.
37+
38+
- Your friends at SparkFun.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
HTU21D Humidity Sensor Example Code
3+
By: Nathan Seidle
4+
SparkFun Electronics
5+
Date: September 15th, 2013
6+
License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
7+
8+
Uses the HTU21D library to display the current humidity and temperature
9+
10+
Open serial monitor at 9600 baud to see readings. Errors 998 if not sensor is detected. Error 999 if CRC is bad.
11+
12+
Hardware Connections (Breakoutboard to Arduino):
13+
-VCC = 3.3V
14+
-GND = GND
15+
-SDA = A4 (use inline 330 ohm resistor if your board is 5V)
16+
-SCL = A5 (use inline 330 ohm resistor if your board is 5V)
17+
18+
*/
19+
20+
#include <Wire.h>
21+
#include "SparkFunHTU21D.h"
22+
23+
//Create an instance of the object
24+
HTU21D myHumidity;
25+
26+
void setup()
27+
{
28+
Serial.begin(9600);
29+
Serial.println("HTU21D Example!");
30+
31+
myHumidity.begin();
32+
}
33+
34+
void loop()
35+
{
36+
float humd = myHumidity.readHumidity();
37+
float temp = myHumidity.readTemperature();
38+
39+
Serial.print("Time:");
40+
Serial.print(millis());
41+
Serial.print(" Temperature:");
42+
Serial.print(temp, 1);
43+
Serial.print("C");
44+
Serial.print(" Humidity:");
45+
Serial.print(humd, 1);
46+
Serial.print("%");
47+
48+
Serial.println();
49+
delay(1000);
50+
}

keywords.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#######################################
2+
# Syntax Coloring Map
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
HTU21D KEYWORD1
10+
11+
#######################################
12+
# Methods and Functions (KEYWORD2)
13+
#######################################
14+
15+
begin KEYWORD2
16+
readHumidity KEYWORD2
17+
readTemperature KEYWORD2
18+
setResolution KEYWORD2
19+
20+
#######################################
21+
# Constants (LITERAL1)
22+
#######################################

library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=SparkFun HTU21D Humidity and Termperature Sensor Breakout
2+
version=1.1.0
3+
author=SparkFun Electronics <[email protected]>
4+
maintainer=SparkFun Electronics <sparkfun.com>
5+
sentence=HTU21D temperature and humidity densor breakout.
6+
paragraph=This is a breadboard friendly breakout board for the Measurement Specialties HTU21D, a high-precision, low-power digital temperature and humidity sensor.
7+
category=Sensor
8+
url=https://github.com/sparkfun/SparkFun_HTU21D_Breakout_Arduino_Library
9+
architectures=*

0 commit comments

Comments
 (0)