#include "input.h"
#include "output.h"
#include "effects.h"
#include "timer.h"
void setup()
{
Serial.begin(115200);
Serial.println(F("roelofw"));
setupInputs();
setupOutputs();
}
void loop()
{
static RUNRESULT oldRR = EFFECT_ERROR;
collect();
RUNRESULT rr = runEffect(switchValue, potValue);
// if there was a change
if (oldRR != rr)
{
oldRR = rr;
Serial.print(__FUNCTION__);
switch (rr)
{
case EFFECT_ERROR:
Serial.println(F(" EFFECT_ERROR"));
break;
case EFFECT_COMPLETE:
Serial.println(F(" EFFECT_COMPLETE"));
break;
case EFFECT_RUNNING:
Serial.println(F(" EFFECT_RUNNING"));
break;
}
}
}