Pegtool -- Python wrapper for interfacing with Pegasus Digital Pen over USB

60 views
Skip to first unread message

fangfufu

unread,
Mar 27, 2009, 6:57:01 PM3/27/09
to Pegasus Digital Pen
Tim Dedischew (humb...@gmail.com) has made some python scripts which
can convert the read the flash memory of the receiver device and
convert the file into svg format.

You would need a some sort of Linux/Unix to make it work. It does not
currently work in Cygwin.
To use it, you need to have:
* Python 2.5+
* libhid0
* python-hid

To get it, you need to do:
svn checkout http://pegtool.googlecode.com/svn/trunk/ pegtool-read-
only

Some command to play around with:
cd pegtool-read-only
./pegtool.py test
./pegtool.py info
./pegtool.py fetch flash.bin
./contrib/flashinfo.py flash.bin

To convert a page, you need to pass flash.bin to flash2svg.py. You
also need to specify what page you want to convert. The current output
of the script is stdout. So you need to do this:

./contrib/svg/flash2svg.py flash.bin 0 > Page0.svg

0 is the page number. The device's first page is 0.

The software is released under the GPL v2.

Readme is at:
http://pegtool.googlecode.com/svn/trunk/README

fangfufu

unread,
Mar 27, 2009, 6:58:42 PM3/27/09
to Pegasus Digital Pen
Warnings in Readme:
_____________________________________________
WARNING: this is just a hobby project right now
WARNING: and still very pre-alpha state
WARNING: Not ready for general use just yet!
_____________________________________________

I think it is already very useful.

On Mar 27, 10:57 pm, fangfufu <fangfufu2...@gmail.com> wrote:
> Tim Dedischew (humble...@gmail.com) has made some python scripts which
Reply all
Reply to author
Forward
0 new messages