Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.34 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.34 KB

FLOSS Python driver for UNI-T UT2025B scopes

Flattr Button

Usage

Connect the scope via USB, and issue the python getshot.py >foo.bin command. You should do this as root / Administrator as it manipulates USB directly. In case of an "Image transfer error, try again" message, just keep trying, after 10 or so attempts, it starts to work, and continues to do so, until the scope is connected to the PC.

If the exit value is 0, and no output is printed on stderr, the binary screenshot is ready in the foo.bin file. It can be converted to PNG by issuing the following command.

python pd2png.py foo.bin foo.png

An optional third parameter can be used to specify a colormap, which transforms the 4-bit image to RGB values. The default is monochrome, but the format is straightforward enought for everyone to create new and better ones. A colormap file must contain at least 16 lines, each containing three numbers (red, green, and blue values 0-255) separated by comma.

License

The whole project is licensed under MIT license.

Dependencies