D-Link DSL-G684T Manuel d'utilisateur Page 72

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 118
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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)){
Vue de la page 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 117 118

Commentaires sur ces manuels

Pas de commentaire