| View previous topic :: View next topic |
| Author |
Message |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
Posted: Wed Feb 27, 2008 12:17 am Post subject: |
|
|
| I spoke to the person that I know, that has been able to output the right stuff before and he said that you need some C or something, that might be just because he programs in C... feel free to correct me. |
|
| Back to top |
|
 |
mharkus
Joined: 15 Jan 2008 Posts: 7
Digg It |
Posted: Wed Feb 27, 2008 12:43 am Post subject: |
|
|
Hi Shadow,
I'm not sure how will you interface your DMX to your PC but if it's via serial or parallel port, yes java can write to those ports. Here's a nice article about serial comms:
http://www.javaworld.com/javaworld/jw-05-1998/jw-05-javadev.html
But I agree with your friend that it is really easy to write programs that communicates with hardware using C. I've been using C before to write programs for controlling home appliances via SMS.
Cheers,
Marc |
|
| Back to top |
|
 |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 468
Digg It |
|
| Back to top |
|
 |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
Posted: Thu Feb 28, 2008 4:12 pm Post subject: |
|
|
Ive been searching for my JSR-82 thingy that I need to add to the classpath, and I just end up confused,
why do I need to add it? I thought the information was in the .dll file? |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 468
Digg It |
Posted: Thu Feb 28, 2008 4:18 pm Post subject: |
|
|
JSR-82 is a Java framework that contains methods to implement Bluetooth support in Java. It should be a JAR file. You'll need to obtain it online (I recommend you get BlueCove, from bluecove.org). If WiiRemoteJ can't interface with Bluetooth, it can't connect to a remote.  _________________ Cha0s |
|
| Back to top |
|
 |
SilentShaddow
Joined: 10 Feb 2008 Posts: 33
Digg It |
Posted: Thu Feb 28, 2008 4:26 pm Post subject: |
|
|
Im downloading the BlueCove now, but I did some research and found out that up till now I have been using the Toshiba stack...
OK I have the BLueCove thingy,
stuff so far...
the command im trying to use:
C:\Users\Toby\Downloads\WiiRemoteJ\WiiRemoteJ_v1.2>javac -cp WiiRemoteJ.jar -cp BlueCove.jar DMXControl.java
the location of bluecove:
C:\Users\Toby\Downloads\BlueCove-2.0.2
C:\Users\Toby\Downloads\WiiRemoteJ
the code:
| Code: | import WiiRemoteJ.jar;
import wiiremotej.event.*;
public class DMXControl
{
public static void main(String args[]) throws Exception
{
WiiRemote remote = WiiRemoteJ.findRemote();
remote.setLEDIlluminated(0, true);
WiiRemoteAdapter listener = new WiiRemoteAdapter()
{
public void buttonInputReceived(WRButtonEvent evt)
{
if (evt.wasPressed(WRButtonEvent.B))
{
System.out.println("yay");
}
}
};
remote.addWiiRemoteListener(listener);
};
} |
|
|
| Back to top |
|
 |
|