4_Ust-vo_poluchenia_velichi.../main.c

23 lines
622 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.

# include <Encoder.h>
# include <DHT_22.h>
void setup()
{
encoder_Initialization();
DHT22_setup();
//Здесь функции ктр вызываются 1 раз
}
void loop()
{
Serial.print("Данные с энкодера: ");
Serial.print(get_encoder_value());
Serial.print("");
Serial.print("Темпеартура: ");
Serial.print(get_DHT_value_temperature());
Serial.print(" ");
Serial.print("Влажность: ");
Serial.println(get_DHT_value_humidity());
//Здесь функции ктр вызываются бесконечное количество раз
}