Skip to content

Commit

Permalink
уменьшено время ожидания для светофора
Browse files Browse the repository at this point in the history
  • Loading branch information
osdrv committed May 25, 2011
1 parent 8489b7f commit 1bcb862
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions traffic_light_unit/traffic_light_unit.pde
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ void setup() {
pinMode(yellow, OUTPUT);
pinMode(green, OUTPUT);
// light(yellow_color);
blinkYellow();

Ethernet.begin(mac, ip);
// Serial.begin(9600);
// Serial.println("connecting...");

delay(500);
blinkYellow();
}

void loop() {
Expand All @@ -52,7 +51,8 @@ void do_request() {
if (!client.connected()) {
// Serial.println("some troubles");
blinkYellow();
delay(10000);
blinkYellow();
blinkYellow();
}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ void do_request() {
}

void blinkYellow() {
for (int i = 0; i < 5; i++) {
for (int i = 0; i < 3; i++) {
light_yellow();
delay(500);
no_light();
Expand Down

0 comments on commit 1bcb862

Please sign in to comment.