27 lines
489 B
C
27 lines
489 B
C
#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*/ |