increased reciver time tolerance

This commit is contained in:
IMback
2018-11-27 18:48:34 +01:00
parent f963c5b312
commit 775ff9313b
6 changed files with 45 additions and 34 deletions

View File

@ -8,7 +8,6 @@ void RgbLed::setSolidColor( const uint8_t r, const uint8_t g, const uint8_t b)
_targetR = r;
_targetG = g;
_targetB = b;
(!_fade && r+b+g == 0) ? off() : on();
}
void RgbLed::setPreset( const uint8_t preset)
@ -148,7 +147,7 @@ void RgbLed::patternStep()
if(_counter<65530) _counter++;
else _pwmB->setDutyB(140);
_delay_ms(18); //honey dose this make me look slow?
_delay_ms(18);
}
}
@ -185,13 +184,13 @@ void RgbLed::logic()
uint8_t RgbLed::getR()
{
return OCR0B;
return _pwmA->getValueB();
}
uint8_t RgbLed::getB()
{
return OCR2B;
return _pwmB->getValueB();
}
uint8_t RgbLed::getG()
{
return OCR0A;
return _pwmA->getValueA();
}