From 36f466aceaf759b3e319987487039dd055e4c065 Mon Sep 17 00:00:00 2001 From: Romedius Weiss Date: Mon, 28 Dec 2015 16:49:05 +0100 Subject: [PATCH] increased update frequency of fading patterns. Updating space state with the Spaceping update. --- ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino index 703e99d..b597141 100644 --- a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino +++ b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino @@ -34,13 +34,13 @@ int hsopen; int ethernetstatus; int ledtimer =0; -const int ledspan =20; +const int ledspan =100; int pingtimer =-1; -const int pingspan =50; +const int pingspan =250; int checktimer = 0; -const int checkspan =200; +const int checkspan =1000; int update = 0; @@ -76,7 +76,7 @@ void setup() setEth(-1); setRoom(2); - Timer1.initialize(100000); // 10 mal die Sekunde + Timer1.initialize(20000); // 50 mal die Sekunde Timer1.attachInterrupt(setLeds); startEthernet(); @@ -111,6 +111,7 @@ void readButtons(){ void launchUpdate(){ if(update==1){ RequestPing(); + RequestState(); update = 0; } }