From f67d66942f67943c3b2c73963e748ef7236c6b1e Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Wed, 25 Dec 2024 18:45:02 +0100 Subject: [PATCH] docs(README): Complete README example. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 31bce9b..d0179f6 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ device = open(HidApi.find_device( # Configuring pins for GPIO operations command = MCP2221Driver.GetSRAMSettingsCommand() -MCP2221Driver.query(device, command) +response = MCP2221Driver.query(device, command) command = MCP2221Driver.SetSRAMSettingsCommand( gpiosettings=( gpio0=response.gpio0status, @@ -55,4 +55,7 @@ for i in 1:60 sleep(1) end +close(device) +HidApi.shutdown() + ```