コード例 #1
0
ファイル: 11_reset.py プロジェクト: lowobservable/coax
#!/usr/bin/env python

from common import open_example_serial_interface

from coax import reset

with open_example_serial_interface() as interface:
    print('RESET...')

    reset(interface)
コード例 #2
0
#!/usr/bin/env python

from common import open_example_serial_interface

from coax import poll, poll_ack

with open_example_serial_interface(poll_flush=False) as interface:
    print('POLL...')

    poll_response = poll(interface, receive_timeout=5)

    print(poll_response)

    if poll_response:
        print('POLL_ACK...')

        poll_ack(interface)