From 13956ae38d748eda7de72c916f24aeacbd43f256 Mon Sep 17 00:00:00 2001 From: GetPsyched Date: Sun, 24 Dec 2023 09:04:52 +0530 Subject: [PATCH] feat: display both methods of manipulating the serial conn --- readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f454682..bbcd97e 100644 --- a/readme.md +++ b/readme.md @@ -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