Add source note

master
informatic 2019-03-01 12:29:45 +01:00
parent 07d20593af
commit 412c3192cb
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.py[co]

4
mdc.py
View File

@ -4,6 +4,10 @@ BROADCAST = 0xfe
class MDC(serial.Serial):
"""Samsung 400MX MDC remote control client
Docs: https://www.samsung.com/us/pdf/MDC_400DXn460DXn570DXn700DXn820DXn460TXn_v1.pdf
"""
def command(self, command, data=[], target_id=BROADCAST):
if target_id == 0:
target_id = 0xff