Skip to content

Latest commit

 

History

History
executable file
·
56 lines (46 loc) · 2.15 KB

README.md

File metadata and controls

executable file
·
56 lines (46 loc) · 2.15 KB

Pegasus

No more Mr. Nice Gaius!

MacOS

install libusb using brew

brew install libusb

or install libusb using macports

sudo port install libusb

Windows

If your target device is not HID, you '''must''' install a driver before you can communicate with it using libusb. Currently, this means installing one of Microsoft's WinUSB, [http://sourceforge.net/apps/trac/libusb-win32/wiki libusb-win32] or [http://libusbk.sourceforge.net/UsbK3/index.html libusbK] drivers. Two options are available:

libusb_context * ctx = NULL;
libusb_init(&ctx);
libusb_set_option(ctx, LIBUSB_OPTION_USE_USBDK);

Linux

Edit/create the file:

sudo vi /etc/udev/rules.d/50-myusb.rules

Copy/paste the contents and save it:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5742", GROUP="users", MODE="0666"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5742", GROUP="users", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", GROUP="users"  MODE="0666"

Then run

sudo udevadm control --reload

add yourself to the dialout group for tty/serial permissions

sudo usermod -a -G dialout $USER

To use the appimage

./Pegasus.AppImage --appimage-extract
cd sqaush-fs
./pegasus