D-Link DSL-G684T Bedienungsanleitung Seite 37

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 118
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 36
37
In the earlier version of the project communication was based on the HTTP instead
of the telnet protocol. That is why in this section an example of stored html is placed. I left
this part of code to show additional possible functionality, which is handling website with
status data, or as in example even servo control ability. In my opinion, as an additional
functionality, this is very powerful tool.
4. Functions and procedures
SPI_Uart_println("exit");
delay(500);
Flush_RX();
}
char Have_Client(void)
{
// hard reset
current = digitalRead(inPin);
if (current == HIGH && previous == LOW &&
millis()- firstTime > 200){
firstTime = millis(); // if the buttons
becomes press remember the time
}
if (current == HIGH && ((millis() - firstTime) %
1000) < 20 && millis() - firstTime > 500){
ledblink(1, 50, ledPin); // Each second the
button is held blink the indicator led and
count++; // and 1 to the counter
}
if (current == LOW && count >=3 && count < 6){
ledblink(10,200,ledPin); // When the button is
released if the counter is between the two numbers
(3-6 blinks or secs) run the program
Seitenansicht 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 117 118

Kommentare zu diesen Handbüchern

Keine Kommentare