increased reciver time tolerance
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user