From 1627a617de5297dac990987a70d7e7c5fc29caca Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Wed, 21 Aug 2013 01:33:08 -0700 Subject: [PATCH] Map a few bits, clean up overlay to support 16 mapping channels --- SugarCubes.pde | 4 ++-- _Mappings.pde | 48 +++++++++++++++++++++--------------------------- _Overlay.pde | 10 +++++----- 3 files changed, 28 insertions(+), 34 deletions(-) diff --git a/SugarCubes.pde b/SugarCubes.pde index bc70626..2586b1a 100644 --- a/SugarCubes.pde +++ b/SugarCubes.pde @@ -27,10 +27,10 @@ LXPattern[] patterns(GLucose glucose) { return new LXPattern[] { // Slee - new ShiftingPlane(glucose), - new AskewPlanes(glucose), new Swarm(glucose), new SpaceTime(glucose), + new ShiftingPlane(glucose), + new AskewPlanes(glucose), new Blinders(glucose), new CrossSections(glucose), new Psychedelia(glucose), diff --git a/_Mappings.pde b/_Mappings.pde index efe0e4c..73e1fe2 100644 --- a/_Mappings.pde +++ b/_Mappings.pde @@ -110,36 +110,30 @@ public PandaMapping[] buildPandaList() { return new PandaMapping[] { new PandaMapping( "10.200.1.29", new ChannelMapping[] { - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 1, 2, 3, 4 }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 7, 8 }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 9, 10 }), - new ChannelMapping(ChannelMapping.MODE_BASS), - new ChannelMapping(ChannelMapping.MODE_FLOOR), - new ChannelMapping(ChannelMapping.MODE_SPEAKER, 0), - new ChannelMapping(ChannelMapping.MODE_SPEAKER, 1), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), }), new PandaMapping( "10.200.1.28", new ChannelMapping[] { - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), + new ChannelMapping(ChannelMapping.MODE_BASS), + new ChannelMapping(ChannelMapping.MODE_FLOOR), + new ChannelMapping(ChannelMapping.MODE_SPEAKER, 0), + new ChannelMapping(ChannelMapping.MODE_SPEAKER, 1), }), }; } @@ -184,7 +178,7 @@ class CubeMapping { class PandaMapping { // How many channels are on the panda board - public final static int CHANNELS_PER_BOARD = 13; + public final static int CHANNELS_PER_BOARD = 16; // How many total pixels on the whole board public final static int PIXELS_PER_BOARD = ChannelMapping.PIXELS_PER_CHANNEL * CHANNELS_PER_BOARD; diff --git a/_Overlay.pde b/_Overlay.pde index f2f88d1..e21be8e 100644 --- a/_Overlay.pde +++ b/_Overlay.pde @@ -749,10 +749,10 @@ class MappingUI extends OverlayUI { class DebugUI { final ChannelMapping[] channelList; - final int debugX = 10; - final int debugY = 42; + final int debugX = 5; + final int debugY = 5; final int debugXSpacing = 28; - final int debugYSpacing = 22; + final int debugYSpacing = 21; final int[][] debugState; final int DEBUG_STATE_ANIM = 0; @@ -782,8 +782,8 @@ class DebugUI { int xBase = debugX; int yPos = debugY; - fill(color(0, 0, 0, 80)); - rect(4, 32, 172, 388); + fill(#000000); + rect(0, 0, debugX + 5*debugXSpacing, height); int channelNum = 0; for (ChannelMapping channel : channelList) { -- 2.34.1