Permalink
Browse files

Added Constructor

  • Loading branch information...
1 parent b0f6e9c commit 0deb5acf682f7e3f9d5ab89cdf251a790484d4bc @aspeteRakete aspeteRakete committed Aug 26, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/com/rngtng/launchpad/MonomeLaunchpad.java
@@ -44,6 +44,15 @@ public MonomeLaunchpad(Object listener) {
color_off = new LColor(); //Black
launchpad.reset();
}
+
+public MonomeLaunchpad(Object listener, String inputName, String outputName) {
+ super(listener);
+ launchpad = new Launchpad( (PApplet) listener, inputName, outputName);
+ launchpad.addListener(this);
+ color_on = new LColor(LColor.RED_HIGH); //full Red
+ color_off = new LColor(); //Black
+ launchpad.reset();
+ }
////////////////////////////////////////////////// monome functions

0 comments on commit 0deb5ac

Please sign in to comment.