Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
systemprogramming-4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eunchae Lee
systemprogramming-4
Commits
198ffb44
Commit
198ffb44
authored
1 year ago
by
Eunchae Lee
Browse files
Options
Downloads
Patches
Plain Diff
Update DHT11.c
parent
97684016
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DHT11.c
+2
-2
2 additions, 2 deletions
src/DHT11.c
with
2 additions
and
2 deletions
src/DHT11.c
+
2
−
2
View file @
198ffb44
...
...
@@ -9,7 +9,7 @@
#include
<sys/socket.h>
#include
<math.h>
#define MAX_
READING
85 // 안정적으로 데이터를 읽기 위해 타이밍 85로 정의
#define MAX_
TIME
85 // 안정적으로 데이터를 읽기 위해 타이밍 85로 정의
#define PIN 2 // PIN number for DHT11
// 서버 정보 정의
...
...
@@ -118,7 +118,7 @@ void read_data()
pinMode
(
PIN
,
INPUT
);
// 센서로 부터 데이터를 받기 위한 준비가 되었음을 PIN을 input으로 설정
// 데이터 읽기
for
(
int
i
=
0
;
i
<
MAX_
READING
;
i
++
)
for
(
int
i
=
0
;
i
<
MAX_
TIME
;
i
++
)
{
count
=
0
;
// count the duration of each state
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment