Releases: Neradoc/discotool
Moving pypi to discotool, simplify circup call in windows
This update changes the pypi name from discotool-for-microcontrollers
to discotool
.
This also updates the default windows call to circup to assume the PATH was correctly set. The previous value was no longer valid because of the move to a package. To set your pip path, look at the circup guide. It's actually also required to call discotool directly once installed.
Small changes to cleanup
cleanup
takes --all as an option for --yes (like circup update)- Enable ctrl-C abort in cleanup
- Add an example of using the discotool library to send data to a board by drive name
Fix for board information on Windows
Descriptor strings could be mangled due to a wrong length argument, making it fail to retrieve the full name on Windows.
Also the version
command doesn't run the boards discovery, it just prints the version.
Full board name on windows, install fixes
The board name is now retrieved fully from the USB descriptor on windows.
Pypi installation setup now specifies platform-specific installs, and wmi is added to the windows requirements.txt
.
Version command and github workflow update
Trying to make the release action work and discotool version
.
Edit: Yay it worked !
Better naming on Windows, separate drive name on all platforms
Better values for the Manufacturer and Name (the USB product field) are retrieved on Windows.
This only works with boards that have a drive, and the fields are truncated to 16 characters, but it's better, so ship it !
The --mount
filter looks at the actual volume name (CIRCUITPY
or other) on all platforms, instead of the drive letter on Windows (F:\\
) or the whole mount path on MacOS (/Volumes/CIRCUITPY
) and Linux (/media/CIRCUITPY
).
Still need to find a way to get the actual full USB manufacturer and product fields from the board on Windows, independently of the presence of a drive or not.