Код:
#include <TVout.h> #include <fontALL.h> #include <dht11.h> dht11 sensor; #define DHT11PIN 8 #define DHTTYPE DHT11 // тип DHT-11 TVout TV; void setup() { Serial.begin(9600); TV.begin(PAL,120,96); TV.select_font(font6x8); TV.clear_screen(); } void loop() { int chk = sensor.read(DHT11PIN); TV.select_font(font6x8); TV.print("Humidity(%): "); TV.println(sensor.humidity); TV.print("Temperature(oC): "); TV.println(sensor.temperature); TV.delay(2000); TV.clear_screen();