-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working prototype! It can get the version and successfully parse an exact match.
- Loading branch information
1 parent
03a8227
commit 46591fd
Showing
50 changed files
with
2,287 additions
and
2,865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,33 @@ | ||
package com.strikete.photon; | ||
|
||
import java.io.IOException; | ||
import java.net.InetAddress; | ||
|
||
import org.apache.log4j.BasicConfigurator; | ||
import org.apache.log4j.Logger; | ||
|
||
import com.google.common.eventbus.Subscribe; | ||
import com.strikete.photon.csv.CsvCueLevelParser; | ||
import com.strikete.photon.events.ChannelCountUpdateEvent; | ||
import com.strikete.photon.events.ChannelUpdateEvent; | ||
import com.strikete.photon.objects.Channel; | ||
import com.strikete.photon.objects.DmxAddress; | ||
import com.strikete.photon.osc.OscInstance; | ||
import com.strikete.photon.osc.OscInstance.OscFormat; | ||
import com.strikete.photon.wtsahtsi.Wtsahtsi; | ||
import java.util.Scanner; | ||
|
||
public class Main { | ||
|
||
/* | ||
* NON-MAIN METHODS | ||
*/ | ||
|
||
|
||
|
||
/* | ||
* MAIN METHOD | ||
*/ | ||
|
||
*/ | ||
public static void main(String[] args) throws IOException { | ||
|
||
//Create Logger | ||
log = Logger.getLogger(Main.class); | ||
BasicConfigurator.configure(); | ||
|
||
//Print welcome message | ||
printWelcomeMessage(); | ||
Photon photon = new Photon(); | ||
Scanner scanner = new Scanner(System.in); | ||
|
||
OscInstance osc = new OscInstance(OscFormat.ETC_EOS,"192.168.0.86",6300,6301); | ||
Main main = new Main(); | ||
System.out.println(InetAddress.getLocalHost()); | ||
String targetIp = "192.168.10.111"; | ||
int targetPort = 3032; | ||
int listeningPort = 3033; | ||
|
||
osc.init(); | ||
osc.getEventHandler().register(main); | ||
photon.initializeOsc(targetIp, targetPort, listeningPort); | ||
|
||
|
||
while(true) { | ||
photon.updateOscObjects(); | ||
try { | ||
Thread.sleep(1000); | ||
} catch (InterruptedException e) { | ||
// TODO Auto-generated catch block | ||
e.printStackTrace(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
photon/src/main/java/com/strikete/photon/events/BeamPaletteCountUpdateEvent.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
photon/src/main/java/com/strikete/photon/events/BeamPaletteUpdateEvent.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
photon/src/main/java/com/strikete/photon/events/ChannelCountUpdateEvent.java
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
photon/src/main/java/com/strikete/photon/events/ChannelSelectionEvent.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
photon/src/main/java/com/strikete/photon/events/ChannelUpdateEvent.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
photon/src/main/java/com/strikete/photon/events/ColorPaletteCountUpdateEvent.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
photon/src/main/java/com/strikete/photon/events/ColorPaletteUpdateEvent.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.