Skip to content

Commit a12412a

Browse files
authored
feat: add Nedis VMAT3462AT codes (#6)
1 parent 15d8907 commit a12412a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""Command codes for the Nedis VMAT3462AT HDMI switch."""
2+
3+
from enum import IntEnum
4+
5+
from ...commands import Command, NECCommand
6+
7+
8+
class NedisVMAT3462ATCode(IntEnum):
9+
"""Nedis VMAT3462AT HDMI switch IR command codes."""
10+
11+
POWER = 0x14
12+
A_OFF = 0xD
13+
A_1 = 0x19
14+
A_2 = 0x15
15+
A_3 = 0x50
16+
A_4 = 0x4A
17+
B_OFF = 0x2
18+
B_1 = 0x18
19+
B_2 = 0x51
20+
B_3 = 0x53
21+
B_4 = 0x45
22+
23+
24+
def make_command(code: NedisVMAT3462ATCode, repeat_count: int = 0) -> Command:
25+
"""Get the NECCommand for a Nedis VMAT3462AT HDMI switch IR code."""
26+
return NECCommand(
27+
address=0x0, command=code, modulation=38000, repeat_count=repeat_count
28+
)

0 commit comments

Comments
 (0)