EasyManua.ls Logo

Eckstein komponente KS0530 - Page 150

Default Icon
160 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
150
lr_servo.write(lr_angle);//return to initial angle
delay(1000);
ud_servo.write(ud_angle);
delay(1000);
}
void loop() {
ServoAction(); //servo performs the action
read_light(); //read the light intensity of bh1750
read_dht11(); //read the value of temperature and humidity
LcdShowValue(); //Lcd shows the values of light intensity,
temperature and humidity
//serial monitor displays the resistance of the photoresistor and the
angle of servo
/*Serial.print(" L ");
Serial.print(L);
Serial.print(" R ");
Serial.print(R);
Serial.print(" U ");
Serial.print(U);