In the cubeplex.h, change your code to this:
Under :
/******************************** FLUSH BUFFER ********************************
You will find this mapping table that looks something like this:
//TODO the pins values need to be changed so that the mapping.h file can
// change them using #defines
if (_cube_buffer[ 0] != 0)flushElement(copy_frame, 4, 8,_cube_buffer[ 0]);
if (_cube_buffer[ 1] != 0)flushElement(copy_frame,16, 4,_cube_buffer[ 1]);
if (_cube_buffer[ 2] != 0)flushElement(copy_frame,12,16,_cube_buffer[ 2]);
if (_cube_buffer[ 3] != 0)flushElement(copy_frame, 8,12,_cube_buffer[ 3]);
if (_cube_buffer[ 4] != 0)flushElement(copy_frame, 4, 7,_cube_buffer[ 4]);
if (_cube_buffer[ 5] != 0)flushElement(copy_frame,13, 4,_cube_buffer[ 5]);
if (_cube_buffer[ 6] != 0)flushElement(copy_frame,11,13,_cube_buffer[ 6]);
if (_cube_buffer[ 7] != 0)flushElement(copy_frame, 7,11,_cube_buffer[ 7]);
if (_cube_buffer[ 8] != 0)flushElement(copy_frame, 4, 6,_cube_buffer[ 8]);
if (_cube_buffer[ 9] != 0)flushElement(copy_frame,15, 4,_cube_buffer[ 9]);
Note: above is just a little bit of the table, the whole thing is 192 lines, and wont fit in one message.
I attached a copy of just the table in a text file. Copy the contents, and paste it in place of the original table.
It will either change it the right direction, or the wrong direction, and the wrong direction might not be obvious right away.
If you go into charlieCube.ino you can comment out the programs you dont want to run. for now, comment out all but shiftsquares.
void loop() {
// planarSpin();
// fountian();
// trifade();
shiftSquares();
// tunnel();
// chaseTheDot();
// planarFlop3D();
}
Then upload it and see if the squares move around correctly. If it looks good, go back and uncomment out those lines charlieCube.ino.
FlushBufferShift1.txt (14.2 KB)