Going through todo comments on driver.py
This commit is contained in:
parent
4eb9ba5bab
commit
cc26847bf4
|
@ -6,7 +6,9 @@ URL = "https://www.silabs.com/documents/public/software/CP210x_Universal_Windows
|
||||||
response = requests.get(URL)
|
response = requests.get(URL)
|
||||||
|
|
||||||
open('ESP32driver', 'wb').write(response.content)
|
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:
|
with ZipFile('ESP32driver', 'r') as zipObj:
|
||||||
zipObj.extractall(os.path.join(os.path.expanduser("~"), "Downloads", "ESP32driver"))
|
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
|
# TODO: after extract the file, run the .inf file in it to actually install the driver
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
pnputil -i -a silabser.inf # Windows only command
|
|
@ -1,3 +1,12 @@
|
||||||
matplotlib
|
matplotlib
|
||||||
pyserial
|
pyserial
|
||||||
wxPython
|
wxPython
|
||||||
|
os
|
||||||
|
requests
|
||||||
|
urllib.requests
|
||||||
|
zipfile
|
||||||
|
datetime
|
||||||
|
serial
|
||||||
|
time
|
||||||
|
json
|
||||||
|
numpy
|
||||||
|
|
Loading…
Reference in New Issue