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

  • 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 85
86
void HTML_print(char *data)
// Write <data> to THR of SC16IS750 followed by a delay
{
SPI_Uart_WriteArray(data,strlen(data));
delay(30);
}
void SPI_Uart_print(char *data)
// Print string <data> to SC16IS750 using strlen instead of
hard-coded length
{
SPI_Uart_WriteArray(data,strlen(data));
}
char spi_transfer(volatile char data)
{
SPDR = data; // Start the transmission
while (!(SPSR & (1<<SPIF))) // Wait for the end of the
transmission
{
};
return SPDR; // return the received byte
}
void ledblink(int times, int lengthms, int pinnum){
for (int x=0; x<times;x++){
digitalWrite(pinnum, HIGH);
delay (lengthms);
digitalWrite(pinnum, LOW);
delay(lengthms);
}
}
Vue de la page 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 117 118

Commentaires sur ces manuels

Pas de commentaire