Skip to content

"Matrix style" and running text #1

@georg90

Description

@georg90

Any ideas on supporting a "Matrix" style (from the movies)?

I edited your code a little to be able to run without a DCF77, getting an ACK on remote commands and setting the time with the remote.
Also I like to get a Matrix style display and "running text".

I found this for Matrix style operation:

// Matrix Mode defines
#define MATRIX_MIN_LENGTH 3
#define MATRIX_UPDATE_INTERVAL 250
long int lastMillis = 0;
long int currentMillis;
word matrixBegin = 0;
short matrixLength = 99;

void showMatrix() {
   currentMillis = millis();
      if (currentMillis - lastMillis > MATRIX_UPDATE_INTERVAL) {
        lastMillis  = currentMillis;

        if(matrixLength >= MATRIX_MIN_LENGTH && random(1,100) > 60) {
          matrixBegin = random(0b0000000000000000, 0b1010011010100000);
          matrixBegin &= random(0b0000000000000000, 0b1010011010100000);
          matrixBegin &= 0b1111111111100000; // remove corner LEDs
          matrixLength = 0;
        }
        matrixLength++;
        // move old line 1 line down
        for(int i = 10; i >= 1; i--) {
          matrix[i] = matrix[i-1]; 
        }
        // set new top line
        matrix[0] = matrixBegin;
      }
      needsUpdateFromRtc = true;
      break;
}

Any idea how to edit this to fit the numbering with your setup?

If anybody is interested I can upload the code soon..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions