Herunterladen Diese Seite drucken

AZ-Delivery AZ-Visual ESP8266MOD 12-F Betriebsanleitung Seite 38

Werbung

Betriebsanleitung AZ-Visual
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(10,10);
display.println(F("AZ-Visual"));
// Show the display buffer on the screen. You MUST call display()
after
// drawing commands to make them visible on screen!
display.display();
delay(3000);
display.clearDisplay();
}
void
loop() {
Serial.println("----------------------------------------------");
//Ausgabe an seriellen Monitor
int
sensorValue
(analog-digital-Konverter) vom MQ-2
Serial.print("LDR-Wert:");
Serial.println(sensorValue);
Monitor
Serial.println("----------------------------------------------");
//Ausgabe an seriellen Monitor
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println(F("Sensorwerte:"));
display.print("LDR=");
display.println(sensorValue);
if(sht30.get()==0){
Serial.print("Temperature in Celsius :
Serial.println(sht30.cTemp);
Serial.print("Temperature in Fahrenheit :
Serial.println(sht30.fTemp);
Serial.print("Relative Humidity :
Serial.println(sht30.humidity);
Serial.println();
}
else
{
Serial.println("Error!");
}
display.print("Temperatur=");
display.println(sht30.cTemp);
display.print("Luftfeuchtigkeit=");
display.print(sht30.humidity);
display.display();
delay(5000);
}
=
analogRead(analogInPin);
// Ausgabe im Seriellen Monitor
// Ausgabe des Analogwerts im Seriellen
// Normal 1:1 pixel scale
// Draw white text
// Start at top-left corner
//Auslesen des ADC-Pins
// Normal 1:1 pixel scale
// Draw white text
// Start at top-left corner
");
");
");
38

Werbung

loading

Diese Anleitung auch für:

Az-visual esp8266-12f