Skip to content

Commit 9808b71

Browse files
committed
feat: add Mode IntEnum for improved mode representation in BlinkStick
1 parent 3221a02 commit 9808b71

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/blinkstick/enums.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from enum import Enum
3+
from enum import Enum, IntEnum
44

55

66
class BlinkStickVariant(Enum):
@@ -38,3 +38,9 @@ def from_version_attrs(
3838
elif version_attribute == 0x203:
3939
return BlinkStickVariant.BLINKSTICK_FLEX
4040
return BlinkStickVariant.UNKNOWN
41+
42+
43+
class Mode(IntEnum):
44+
RGB = 1
45+
RGB_INVERSE = 2
46+
ADDRESSABLE = 3

0 commit comments

Comments
 (0)