I2C Mini Matrix (PID: 870) Random Data
Re: I2C Mini Matrix (PID: 870) Random Data
Re: I2C Mini Matrix (PID: 870) Random Data
void loop() {
// -- For the 8x8 Matrices --
for (int i = 0; i < 4, i++) {
int data = random(0,2040);
matrix8[i].clear;
matrix8[i],print(data);
matrix8[i].writeDisplay();
}
// -- For the 16x8 Matrices --
for (int i = 4; i < 7, i++) {
int data = random(0,4080);
matrix16[i].clear;
matrix16[i],print(data);
matrix16[i].writeDisplay();
}
}
Re: I2C Mini Matrix (PID: 870) Random Data
Re: I2C Mini Matrix (PID: 870) Random Data
void loop() {
// -- For the 8x8 Matrices --
for (int i = 0; i < 4, i++) {
int x_pos = random(0,7);
int y_pos = random(0,7);
matrix8[i].clear;
matrix8[i].drawPixel(x_pos, y_pos),
matrix8[i].writeDisplay();
}
}
Re: I2C Mini Matrix (PID: 870) Random Data
Re: I2C Mini Matrix (PID: 870) Random Data
for (int i = 0; i < 4, i++)
{
matrix8[i].clear;
for int(row = 0, row < 8, row++)
{
for (int col = 0, col < 8, col++)
{
matrix8[i].drawPixel(row, col, random(0,2));
}
}
matrix8[i].writeDisplay();
}
Re: I2C Mini Matrix (PID: 870) Random Data
Re: I2C Mini Matrix (PID: 870) Random Data
Re: I2C Mini Matrix (PID: 870) Random Data
Re: I2C Mini Matrix (PID: 870) Random Data
adafruit_support_bill wrote:
- Code: Select all | TOGGLE FULL SIZE
for (int i = 0; i < 4, i++)
{
matrix8[i].clear;
for int(row = 0, row < 8, row++)
{
for (int col = 0, col < 8, col++)
{
matrix8[i].drawPixel(row, col, random(0,2));
}
}
matrix8[i].writeDisplay();
}
void dataDisplay() {
if (millis() - prev_milli[2] >= data_port_delay){
// --- 8x8 Matrix ---
for (int i = 0; i < 4; i++) {
matrix8[i].clear();
for (int row8 = 0; row8 < 8; row8++) {
for (int col8 = 0; col8 < 8; col8++) {
matrix8[i].drawPixel(row8, col8, random(0,2));
}
}
matrix8[i].writeDisplay();
}
// --- 16x8 Matrix ---
for (int c = 4; c < 7; c++) {
matrix16[c].clear();
for (int row16 = 0; row16 < 8; row16++) {
for (int col16 = 0; col16 < 16; col16++) {
matrix16[c].drawPixel(row16, col16, random(0,2));
}
}
matrix16[c].writeDisplay();
}
prev_milli[2] = millis();
}
}
Re: I2C Mini Matrix (PID: 870) Random Data