04-04-2011, 23:53
|
#94
|
Guppy
Registrato: Dec 2003
Città: Castelnuovo Monti - Reggio Emilia
Acquariofilo: Marino
N° Acquari: 1
Età : 55

Messaggi: 218
Post "Grazie" / "Mi Piace"
Mentioned: 0 Post(s)
Annunci Mercatino: 0
|
|
Originariamente inviata da LukeLuke
|
|
Originariamente inviata da lucaeff
|
come impostare il ritardo dello skimmer dopo un blackout?
|
prendi spunto dalla funzione per le HQI che trovi nel file ReefAngel.cpp:
void ReefAngelClass::MHLights(byte LightsRelay, byte OnHour, byte OnMinute, byte OffHour, byte OffMinute, byte MHDelay)
{
unsigned int MHTimer = MHDelay;
MHTimer *= SECS_PER_MIN;
if ( now()-RAStart > MHTimer )
StandardLights(LightsRelay, OnHour, OnMinute, OffHour, OffMinute);
}
puoi provare così:
nel file .pde sopra al void setup() inserisci questo:
void RitardoSkimmer(byte SKPort, byte SKDelay)
{
unsigned int SKTimer = SKDelay;
SKTimer *= SECS_PER_MIN;
if ( now()-RAStart > SKTimer )
ReefAngel.Relay.On(SKPort);
}
Poi nella sezione loop() del .pde inserisci questo:
RitardoSkimmer(Port4,60)
dovrebbe funzionare .... provate ... 
------------------------------------------------------------------------
in linea generale... per capire cosa fà il vostro controller... andatevi a vedere il file ReefAngel.cpp e da lì potete prendere anche diversi spunti https://github.com/curtbinder/ReefAn.../ReefAngel.cpp
|
mi dà questo errore, sbaglio qualcosa?

__________________
|
|
|