-
-
Notifications
You must be signed in to change notification settings - Fork 91
Closed as not planned
Labels
conclusion: duplicateHas already been submittedHas already been submittedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
In the "get started" software for the new "Arduino Plug and Make Kit" the UNO R4 matrix shows a scrolling text "Resetting!" with forgotten pixels in the top line. I try to use the command matrix.clear() to clear everything but it does not work.
Please see my example code.
In the first step the sketch draws a line on the top of the matrix.
Then in a second step I try to clear .... yes, the line goes away.
But in the third step the line comes back while the scrolling text does not use the top line of the matrix.
/*
Test scrolling text and matrix.clear()
*/
// To use ArduinoGraphics APIs
// Please include BEFORE Arduino_LED_Matrix
#include "ArduinoGraphics.h"
#include "Arduino_LED_Matrix.h"
ArduinoLEDMatrix matrix;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
// use matrix
matrix.begin();
matrix.beginDraw();
matrix.stroke(0xFFFFFFFF);
matrix.line(0,0,11,0);
matrix.endDraw();
delay(1000);
matrix.clear();
delay(1000);
matrix.beginDraw();
matrix.textScrollSpeed(80);
const char text[] = " Hello World! ";
matrix.textFont(Font_5x7);
matrix.beginText(0, 1, 0xFFFFFF);
matrix.println(text);
matrix.endText(SCROLL_LEFT);
matrix.endDraw();
}
void loop() {
// put your main code here, to run repeatedly:
}
Metadata
Metadata
Assignees
Labels
conclusion: duplicateHas already been submittedHas already been submittedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project