D-Link DSL-G684T Bedienungsanleitung Seite 72

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 118
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 71
72
if (current == LOW){ // reset the counter if the button is
not pressed
count = 0;
}
previous = current;
// photocell value
if (photo == 1){
val = analogRead(photoPin);
itoa (val, val2, 10);
SPI_Uart_print("photo=");
SPI_Uart_print(val2);
delay(90);
}
// servomotor
if (servo == 1){
itoa (myservo.read(), val2, 10);
SPI_Uart_print("servo=");
SPI_Uart_print(val2);
delay(90);
itoa (myservo1.read(), val2, 10);
SPI_Uart_print("servo1=");
SPI_Uart_print(val2);
delay(90);
}
// auto photocell
if (ph == 1){
for(i = 0; i < 180; i++){
val = analogRead(photoPin);
if(ph_val!=val){
if(ph_val<val-5){
if((myservo.read()-1<=181)&&(myservo.read()-1>=0)){
Seitenansicht 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 117 118

Kommentare zu diesen Handbüchern

Keine Kommentare