4_Ust-vo_poluchenia_velichi.../DHT_22.h

20 lines
376 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
bool dht_check(void);
float dht_temperature();
float dht_humidity();
void T1_CAPT();
void T0_CA();
void T1_CA();
#endif /*DHT_22_H*/