TwinkleOffAnimation
- class phoenix5.led.TwinkleOffAnimation(r: int, g: int, b: int, w: int = 0, speed: float = 1, numLed: int = -1, divider: phoenix5._ctre.led.TwinkleOffAnimation.TwinkleOffPercent = <TwinkleOffPercent.Percent100: 0>, ledOffset: int = 0)
Bases:
BaseTwoSizeAnimation
Animation that randomly turns on LEDs, until it reaches the maximum count and turns them all off
Constructor for a TwinkleAnimation
- Parameters:
r – How much red should the color have [0, 255]
g – How much green should the color have [0, 255]
b – How much blue should the color have [0, 255]
w – How much white should the color have [0, 255]
speed – How fast should the color travel the strip [0, 1]
numLed – How many LEDs the CANdle controls
divider – What percentage of LEDs can be on at any point
ledOffset – Where to start the animation
- class TwinkleOffPercent(value: int)
Bases:
pybind11_object
The maximum percentage of LEDs that are allowed to turn on
Members:
Percent100 : All the LEDs are allowed to turn on
Percent88 : 88% of LEDs are allowed to turn on
Percent76 : 76% of LEDs are allowed to turn on
Percent64 : 64% of LEDs are allowed to turn on
Percent42 : 42% of LEDs are allowed to turn on
Percent30 : 30% of LEDs are allowed to turn on
Percent18 : 18% of LEDs are allowed to turn on
Percent6 : 6% of LEDs are allowed to turn on
- Percent100 = <TwinkleOffPercent.Percent100: 0>
- Percent18 = <TwinkleOffPercent.Percent18: 6>
- Percent30 = <TwinkleOffPercent.Percent30: 5>
- Percent42 = <TwinkleOffPercent.Percent42: 4>
- Percent6 = <TwinkleOffPercent.Percent6: 7>
- Percent64 = <TwinkleOffPercent.Percent64: 3>
- Percent76 = <TwinkleOffPercent.Percent76: 2>
- Percent88 = <TwinkleOffPercent.Percent88: 1>
- property name
- property value
- setDivider(divider: phoenix5._ctre.led.TwinkleOffAnimation.TwinkleOffPercent) None
Sets the percentage of LEDs that are allowed on
- Parameters:
divider – The percentage of LEDs that are allowed on at any point