4_Ust-vo_poluchenia_velichi.../DHT_22.h

27 lines
489 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef DHT_H
#define DHT_H
// Определения портов и битов
#define DHT_PORT PORTB
#define DHT_DDR DDRB
#define DHT_PIN PINB
#define DHT_BIT 0
// Функция чтения данных с DHT
void setup_timer(void);
bool dht_check(void);
float dht_temperature();
float dht_humidity();
void DHT_get_bit();
bool DHT_check_data();
void T1_CAPT();
void T0_CA();
void T1_CA();
//#include "dht.cpp"
int DHT_dtcnt();
#endif /*DHT_H*/