TwinkleAnimation

class phoenix5.led.TwinkleAnimation(r: int, g: int, b: int, w: int = 0, speed: float = 1, numLed: int = -1, divider: phoenix5._ctre.led.TwinkleAnimation.TwinklePercent = <TwinklePercent.Percent100: 0>, ledOffset: int = 0)

Bases: BaseTwoSizeAnimation

Animation that randomly turns LEDs on and off to a certain color

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 TwinklePercent(value: int)

Bases: pybind11_object

The percentage of LEDs that are allowed to be on at any one point

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 = <TwinklePercent.Percent100: 0>
Percent18 = <TwinklePercent.Percent18: 6>
Percent30 = <TwinklePercent.Percent30: 5>
Percent42 = <TwinklePercent.Percent42: 4>
Percent6 = <TwinklePercent.Percent6: 7>
Percent64 = <TwinklePercent.Percent64: 3>
Percent76 = <TwinklePercent.Percent76: 2>
Percent88 = <TwinklePercent.Percent88: 1>
property name
property value
setDivider(divider: phoenix5._ctre.led.TwinkleAnimation.TwinklePercent) None

Sets the percentage of LEDs that are allowed on

Parameters:

divider – The percentage of LEDs that are allowed on at any point