Skip to content

Commit

Permalink
feat: display both methods of manipulating the serial conn
Browse files Browse the repository at this point in the history
  • Loading branch information
GetPsyched committed Dec 24, 2023
1 parent e881cef commit 13956ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ python3 -m pip install -U .
from charachorder import CharaChorder

for device in CharaChorder.list_devices():
# Method 1
with device:
print(device.execute("ID"))
print(device.get_id())

# Method 2
device.open()
print(device.get_id())
device.close()
```

## Links
Expand Down

0 comments on commit 13956ae

Please sign in to comment.