MD_Cubo icon indicating copy to clipboard operation
MD_Cubo copied to clipboard

Clearing the cube doesn't work properly with my ICStation 595 4x4x4 Cube

Open om-hb opened this issue 3 years ago • 1 comments

IMPORTANT

Before submitting this issue [✓] Have you tried using the latest version of the library? [✓] Have you checked this has not already been submitted and/or resolved?

Subject of the issue

Clearing the cube doesn't seem to work properly with my ICStation 595 4x4x4 Cube. When I call .clear, only the lower two planes are cleared. The upper two are not.

Your Environment

Library Version: 2.1.0 Arduino IDE version: 1.8.13 Hardware model/type: Arduino UNO + ICStation 595 4x4x4 Cube OS and Version: Windows 10 64-bit

Steps to Reproduce

Run the code example provided below on a ICStation 595 4x4x4 Cube.

Expected Behavior

All voxels/LEDs get turned off by calling C.clear().

Actual Behavior

Just the voxels/LEDs in the lower two planes are turned off. The voxels/LEDs in the upper two planes are still lit.

Code Demonstrating the Issue

#include <MD_Cubo.h>
#include "MD_Cubo_4x4_ICS595.h"

MD_Cubo_ICS595  C;

void setup() {
  C.begin();
}

void loop() {
  const uint16_t delay = 1000;

  C.fillPlane(VOX_ON,0, 0);
  C.fillPlane(VOX_ON,0, 1);
  C.fillPlane(VOX_ON,0, 2);
  C.fillPlane(VOX_ON,0, 3);
  C.update();
  C.animate(delay);

  C.clear();
  C.update();
  C.animate(delay);
}

om-hb avatar Jul 18 '21 13:07 om-hb

One quick fix I found is to comment out the clear method in MD_Cubo_4x4_ICS595.h, so that the standard clear method defined in MD_Cubo.cpp is used.

om-hb avatar Jul 18 '21 13:07 om-hb