Robert Bui / Mbed 2 deprecated CubicHand

Dependencies:   MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed

Fork of CubicHand by Model-Based Team

Revision:
16:a3de0c0dbe33
Child:
20:c2bc970bbff8
diff -r c701f1122797 -r a3de0c0dbe33 ledCube.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ledCube.h	Mon Dec 08 03:28:50 2014 +0000
@@ -0,0 +1,42 @@
+#include "mbed.h"
+#include "WS2811.h"
+
+#pragma once
+
+class LedCube
+{
+    public:
+        LedCube();
+        ~LedCube();
+        void Init(int x, int y, int z);
+        int getLedIndex(int panel, int x, int y);
+        void updateLEDs(bool on, int size, int x, int y, int z);
+        void cubeUpdate();
+        int move(int deltaX, int deltaY, int deltaZ);
+        void changeColor(float hue);
+        void changeSize(int newSize);
+        
+    private:
+        unsigned const X;
+        unsigned const Y;
+        unsigned const Z;
+        int pos[3];
+        int prevPos[3];
+        int size;
+        int prevSize;
+        //unsigned const nLEDs;//MAX_LEDS_PER_STRIP;
+        //unsigned const nROWs;
+        //unsigned const nCOLs; 
+        //unsigned const DATA_OUT_PIN1; // PTD2
+        //unsigned const DATA_OUT_PIN2; // PTD3
+        //unsigned const DATA_OUT_PIN3; // PTD3
+        float saturation;
+        float brightness;
+        uint8_t r;
+        uint8_t g;
+        uint8_t b;        
+        WS2811 ledStrip1;
+        WS2811 ledStrip2;
+        WS2811 ledStrip3;
+    
+};
\ No newline at end of file