mirror of
https://github.com/lowobservable/coax.git
synced 2026-04-25 20:01:47 +00:00
Add open_serial_interface function
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from common import create_serial, create_interface
|
||||
from common import open_example_serial_interface
|
||||
|
||||
from coax import read_address_counter_hi, read_address_counter_lo, load_address_counter_hi, load_address_counter_lo, write_data, insert_byte
|
||||
|
||||
with create_serial() as serial:
|
||||
interface = create_interface(serial)
|
||||
|
||||
with open_example_serial_interface() as interface:
|
||||
load_address_counter_hi(interface, 0)
|
||||
load_address_counter_lo(interface, 80)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user