Skip to content
Snippets Groups Projects
Commit c3c2d3a7 authored by Eunchae Lee's avatar Eunchae Lee
Browse files

Update DHT11.c

parent acef96dc
No related branches found
No related tags found
No related merge requests found
......@@ -143,10 +143,9 @@ void read_data()
}
/*
처음 3번은 연결상태 확인하는 handshake부분 - 무시
DHT11 센서의 각 비트는 HIGH, LOW 상태 변화 페어로 전달함
홀수 - HIGH, 짝수 - LOW
LOW는 비트의 시작을 알림, HIGH의 상태 길이는 비트 값을 나타냄(26-28ms:0, 70ms:1)
처음 4번은 연결상태 확인하는 handshake부분 - 무시
DHT11 센서의 각 비트는 HIGH, LOW 상태 변화 페어로 전달
HIGH의 상태 길이는 비트 값을 나타냄(26-28ms:0, 70ms:1)
=> LOW 상태 이후 HIGH 상태 길이 측정하여 비트 값 결정함
*/
if ((i >= 4) && (i % 2 == 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment