Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
om-hb opened this issue Jul 18, 2021 · 1 comment
Open

Comments

@om-hb
Copy link

om-hb commented Jul 18, 2021

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
Copy link
Author

om-hb commented Jul 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants