moved serial commands to module

This commit is contained in:
telegnom
2017-10-05 11:56:36 +02:00
parent 5bf28aafd9
commit 0cab61370b
4 changed files with 30 additions and 10 deletions

1
beamer/__init__.py Normal file
View File

@ -0,0 +1 @@
from . import acer

11
beamer/acer.py Normal file
View File

@ -0,0 +1,11 @@
class clubbeamer():
set = {
'on': b'* 0 IR 001\r',
'off': b'* 0 IR 002\r',
'vga': b'* 0 IR 015\r',
'hdmi1': [b'* 0 IR 015\r', b'* 0 IR 050\r'],
'hdmi2': [b'* 0 IR 015\r', b'* 0 IR 050\r', b'* 0 IR 050\r']
}
get = {
'state': [b'* 0 Lamp ?\r', r'.*Lamp.1.*']
}