forked from Makuna/NeoPixelBus
@@ -32,7 +32,7 @@ NeoPixelAnimator animations(Animation_COUNT);
|
||||
void CycleAnimation(const AnimationParam& param)
|
||||
{
|
||||
// calculate which segment should be on using the animation progress
|
||||
uint8_t bitfield = 1 << ( (uint8_t)(param.progress * LedSegment_G) % LedSegment_G);
|
||||
uint8_t bitfield = 1 << ( static_cast<uint8_t>(param.progress * LedSegment_G) % LedSegment_G);
|
||||
// instant a digit with that segment on
|
||||
SevenSegDigit digit(bitfield, brightness);
|
||||
// apply it to the strip
|
||||
|
||||
Reference in New Issue
Block a user