increased update frequency of fading patterns. Updating space state with the Spaceping update.
This commit is contained in:
parent
a4e419ca26
commit
36f466acea
1 changed files with 5 additions and 4 deletions
|
@ -34,13 +34,13 @@ int hsopen;
|
||||||
int ethernetstatus;
|
int ethernetstatus;
|
||||||
|
|
||||||
int ledtimer =0;
|
int ledtimer =0;
|
||||||
const int ledspan =20;
|
const int ledspan =100;
|
||||||
|
|
||||||
int pingtimer =-1;
|
int pingtimer =-1;
|
||||||
const int pingspan =50;
|
const int pingspan =250;
|
||||||
|
|
||||||
int checktimer = 0;
|
int checktimer = 0;
|
||||||
const int checkspan =200;
|
const int checkspan =1000;
|
||||||
|
|
||||||
int update = 0;
|
int update = 0;
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ void setup()
|
||||||
setEth(-1);
|
setEth(-1);
|
||||||
setRoom(2);
|
setRoom(2);
|
||||||
|
|
||||||
Timer1.initialize(100000); // 10 mal die Sekunde
|
Timer1.initialize(20000); // 50 mal die Sekunde
|
||||||
Timer1.attachInterrupt(setLeds);
|
Timer1.attachInterrupt(setLeds);
|
||||||
|
|
||||||
startEthernet();
|
startEthernet();
|
||||||
|
@ -111,6 +111,7 @@ void readButtons(){
|
||||||
void launchUpdate(){
|
void launchUpdate(){
|
||||||
if(update==1){
|
if(update==1){
|
||||||
RequestPing();
|
RequestPing();
|
||||||
|
RequestState();
|
||||||
update = 0;
|
update = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue