Skip to content

rikveenboer/jlibibuddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork of http://www.jraf.org/static/maven/sites/jlibibuddy/.


JLibIBuddy

A Java library to control an i-Buddy (a 3-inch tall blinking and moving USB figureine, see http://www.i-buddy.com/ ). Currently it is only supported / tested under Windows.

I-BuddyShop

In .NET or python

JLibIBuddy

Needs Java libusb / libusb-win32

Benoit Lubek

Original maven repo http://www.jraf.org/static/maven/2/org/jraf/jlibibuddy/

We need to create backup archives for artifacts org.jraf:jlibibuddy:1.1 (see and the sourceforge) and libusbjava:libusbjava-native-win32:0.2.3.0 which are hosted on a private maven repository.

tedious to get libusb working while porting to linux, use other project instead:

still this git fork should once be done

and we have te maven artifact in gradle

Installation

See http://sourceforge.net/p/libusb-win32/wiki/Home/#installation.

For linux, use libusb?

Usage

Using the library is very simple as shown by this example:

import org.jraf.jlibibuddy.IBuddy;
import org.jraf.jlibibuddy.IBuddyException;
import org.jraf.jlibibuddy.IBuddyUtils;


(...)


// get the i-Buddy
IBuddy iBuddy = IBuddy.getIBuddy();

// send some low level commands directly
iBuddy.sendHeadColor(IBuddy.Color.RED);
iBuddy.sendHeart(true);

// use IBuddyUtils to send higher levels commands
IBuddyUtils.flap(iBuddy, 400, 7);


(...)

Credits

Most of the USB code was done following the code posted by "Tom" at http://cuntography.com/blog/?p=17. (dead)

Contact

Contact the author: [email protected] .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published