This is an old revision of the document!
See the DigiUSB→Echo example and the applications in the “Digispark - Example Programs” folder for an example of how to use the DigiUSB library.
On the computer side you can use the included command line tools in the DigiUSB Programs folder:
Also check out the rubygem
The rubygem is a package installable using the rubygem package manager (you wont get any benefit from just downloading the files from github, unless you also use the gem tools to compile it in to a gem and install it.
To install the rubygem, make sure you have libusb 1.x and ruby 1.9.x or ruby 2.0 installed (mac's and many versions of linux come with 1.8 installed, which is no good for this), then open a terminal and run 'gem install digiusb'. You might need to sudo that depending on your platform. Finally, you aught to be able to just type 'digiterm' in your terminal window and it will find the most recently attached digispark, connect to it, and start outputting everything printed via DigiUSB on the device and forwarding keystrokes from the terminal window in to the digispark.
You can get RubyGem from: http://rubygems.org/gems/digiusb