Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
shutter updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Dec 13, 2018
1 parent c964ac1 commit 45ced62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test_shutter.py
Expand Up @@ -11,16 +11,19 @@ async def test(dev):
print(await dev.status())
print(await dev.clear())
print(await dev.version())
for i in b"WZ": # STWXYZ
for i in b"": # STWXYZ
print(chr(i), await dev.passthrough(1, i))

def main():
#logging.basicConfig(level=logging.DEBUG)
loop = asyncio.get_event_loop()
loop.set_debug(False)
async def run():
with await Shutter.connect("buemi") as dev:
await test(dev)
for d in "palmer button".split():
print(d)
with await Shutter.connect(d) as dev:
await test(dev)

loop.run_until_complete(run())


Expand Down

0 comments on commit 45ced62

Please sign in to comment.