From cc26847bf449f22151ec8b7dfff54ffa0e9ad11a Mon Sep 17 00:00:00 2001 From: Deven Date: Sat, 5 Nov 2022 19:09:47 -0700 Subject: [PATCH] Going through todo comments on driver.py --- ESP32Driver.py | 4 +++- ESP32Driver_Script.sh | 3 +++ requirements.txt | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 ESP32Driver_Script.sh diff --git a/ESP32Driver.py b/ESP32Driver.py index 156dfc0..62c4140 100644 --- a/ESP32Driver.py +++ b/ESP32Driver.py @@ -6,7 +6,9 @@ URL = "https://www.silabs.com/documents/public/software/CP210x_Universal_Windows response = requests.get(URL) open('ESP32driver', 'wb').write(response.content) -# need to change user destination figure out how to get it to downloads +# need to change user destination figure out how to get it to downloads +# 11/5/22 --> Saving to downloads folder. No change made. Possible make a change in the inf file: https://learn.microsoft.com/en-us/windows-hardware/drivers/install/specifying-the-source-and-target-locations-for-device-files + with ZipFile('ESP32driver', 'r') as zipObj: zipObj.extractall(os.path.join(os.path.expanduser("~"), "Downloads", "ESP32driver")) # TODO: after extract the file, run the .inf file in it to actually install the driver diff --git a/ESP32Driver_Script.sh b/ESP32Driver_Script.sh new file mode 100755 index 0000000..32adfa2 --- /dev/null +++ b/ESP32Driver_Script.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +pnputil -i -a silabser.inf # Windows only command diff --git a/requirements.txt b/requirements.txt index 8d74aee..c8006ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,12 @@ matplotlib pyserial wxPython +os +requests +urllib.requests +zipfile +datetime +serial +time +json +numpy