Remove NamedInts: Convert LedFormChoices to enum

Related #2273
This commit is contained in:
MattHag 2024-11-05 21:06:08 +01:00 committed by Peter F. Patel-Schneider
parent c9d7d7234a
commit 6903eeefcd
1 changed files with 10 additions and 1 deletions

View File

@ -1002,7 +1002,16 @@ class LedRampChoice(IntEnum):
NO = 2
LEDFormChoices = common.NamedInts(default=0, sine=1, square=2, triangle=3, sawtooth=4, sharkfin=5, exponential=6)
class LedFormChoices(IntEnum):
DEFAULT = 0
SINE = 1
SQUARE = 2
TRIANGLE = 3
SAWTOOTH = 4
SHARKFIN = 5
EXPONENTIAL = 6
LEDParamSize = {
LEDParam.color: 3,
LEDParam.speed: 1,