73
myservo.write(myservo.read()-1);
}
}
if(ph_val>val+5){
if((myservo.read()+1<=180)&&(myservo.read()+1>=0)){
myservo.write(myservo.read()+1);
}
}
delay(10);
}
}
}
if(SPI_Uart_ReadByte(LSR) & 0x01){
Serial.println("Client request...");
Parse_Request(); // Check if request is a GET/POST
Flush_RX();
return 1;
}
else{
return 0;
}
}
char SPI_Uart_Init(void)
// Initialize SC16IS750
{
char data = 0;
SPI_Uart_WriteByte(LCR,0x80); // 0x80 to program baudrate
SPI_Uart_WriteByte(DLL,SPI_Uart_config.DivL); //0x50 = 9600
with Xtal = 12.288MHz
SPI_Uart_WriteByte(DLM,SPI_Uart_config.DivM);
Comentários a estes Manuais