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

Update DHT11.c

parent 198ffb44
No related branches found
No related tags found
No related merge requests found
......@@ -160,11 +160,11 @@ void read_data()
// count에 따라 bit_value 결정
if (count > 16)
{
bit_value = 1; // HIGH 상태가 16ms보다 크면 비트 값은 1.
bit_value = 1;
}
else
{
bit_value = 0; // HIGH 상태가 16ms보다 작으면 비트 값은 0.
bit_value = 0;
}
// 결정된 비트 값을 바이트 내 올바른 위치로 이동
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment