Good morning,
I am trying to extend my knowledge of Arduino.
Copying and modifying a sketch I don't understand the line marked with *** below. I have tried to find the answer but couldn't. Would some very kind person assist me and explain please.
//My test program for LED matrix 11/05/16
//For 32x64 RGB LED matrix.
// NOTE THIS CAN ONLY BE USED ON A MEGA! NOT ENOUGH RAM ON UNO!
#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library
#define OE 9
#define LAT 10
#define CLK 11
#define A A0
#define B A1
#define C A2
#define D A3
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false, 64);
void setup() {
matrix.begin();
// draw some text!
matrix.setTextSize(1); // size 1 == 8 pixels high
matrix.setTextWrap(false); // Don't wrap at end of line - will do ourselves
matrix.setCursor(0, 0); // start at top left, with 8 pixel of spacing
uint8_t w = 0;
char *str = "LED Matrix Display";
for (w = 0; w < 10; w++) { ****************************
matrix.setTextColor(matrix.Color333(0, 0, 7));
matrix.print(str[w]);
}
matrix.setCursor(2, 8); // next line
for (w = 10; w < 18; w++) {
matrix.setTextColor(matrix.Color333(4, 4, 4));
matrix.print(str[w]);
}
matrix.setCursor(3, 18); //next line
//uint8_t w = 0;
char *str2 = "by";
{
matrix.setTextColor(matrix.Color333(0, 7, 0));
matrix.print( str2);
}
matrix.setTextColor(matrix.Color333(7, 0, 0));
matrix.print(" Roger");
delay(5000);
}
void loop() {
// put your main code here, to run repeatedly:
}
Very many thanks for looking.
Pyrus Boy.