Temp Fork
Dependencies: MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed
Fork of CubicHand by
Diff: ledCube.cpp
- Revision:
- 27:0e341d81ea00
- Parent:
- 26:0933d7f2fe78
--- a/ledCube.cpp Thu Dec 11 05:40:39 2014 +0000 +++ b/ledCube.cpp Thu Dec 11 06:06:07 2014 +0000 @@ -54,7 +54,16 @@ /*Determines which LED should be lit based on its cartesian coordinate. The origin is the led at -bottom left of panel 0 when using a three cube panel. */ +bottom left of panel 1 when using a three panel cube + ________ + / /| + / 3 / | + /_______/ 2| + | | | + | 1 | / + | | + -------- +*/ int LedCube::getLedIndex(int panel, int x, int y) { if (panel == PANEL1) {