D-Link DSL-G684T Manuale Utente Pagina 86

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 118
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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);
}
}
Vedere la pagina 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 117 118

Commenti su questo manuale

Nessun commento