Serial.print("Set security phrase to ");
Serial.println(auth_phrase);
// Set localport to <port_listen>
SPI_Uart_print("set i l ");
SPI_Uart_println(port_listen);
delay(500);
Serial.print("Set IP localport to ");
Serial.println(port_listen);
SPI_Uart_print("save");
delay(500);
SPI_Uart_println("exit");
delay(500);
}
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);
Kommentare zu diesen Handbüchern