The codebase to run the *spark d-fuser controller www.sparkav.co.uk/dvimixer

Dependencies:   SPK-TVOne DMX DmxArtNet NetServicesMin OSC PinDetect mRotaryEncoder iniparser mbed spk_oled_ssd1305 filter

Revision:
11:0783cfbeb746
Child:
13:3796bde6ba8f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spk_settings.h	Mon Aug 27 15:10:23 2012 +0000
@@ -0,0 +1,51 @@
+// Parameter Set: minY, maxY, minU, maxU, minV, maxV
+#define kKeyerParam1Name    "Lumakey"
+#define kKeyerParam1Set     0, 18, 128, 129, 128, 129
+#define kKeyerParam2Name    "Chromakey - Blue"
+#define kKeyerParam2Set     30, 35, 237, 242, 114, 121
+
+#include "mbed.h"
+
+class SPKSettings {
+public:
+    SPKSettings()
+    {
+        int paramSet1[6] = {kKeyerParam1Set};
+        keyerParamNames.push_back(kKeyerParam1Name);
+        keyerParamSets.push_back(paramSet1);
+        
+        int paramSet2[6] = {kKeyerParam2Set};
+        keyerParamNames.push_back(kKeyerParam2Name);
+        keyerParamSets.push_back(paramSet2);
+    }
+    
+    std::string keyerParamName (int index)
+    {
+        // TODO: Bounds check and return out of bounds name
+        return keyerParamNames[index];
+    }
+     
+    int*        keyerParamSet(int index)
+    {
+        return keyerParamSets[index];
+    }
+    
+    int         keyerSetCount()
+    {
+        return keyerParamSets.size();
+    }
+    
+    bool        load(std::string filename)
+    {
+        bool success = false;
+        
+        // TODO!
+        
+        return success;
+    }
+    
+protected:
+    LocalFileSystem *local;
+    std::vector<int*> keyerParamSets;
+    std::vector<std::string> keyerParamNames;
+};