Hi everybody,
I'm fairly new to using an arduino, and to programming in general, so I'm sorry if this is a silly question. Though I am quite proud that I've made a lot of advancement in this area over the last few months. But I've looked on the forum here, and found no answer to this question.
I've recently bought a 32x16 RGB LED matrix from adafruit. A step up from my 8x8 red matrix.
And I have found little problems in using the standard library: Printing and scrolling texts, printing squares, circles, and so on. But now I wanted to draw on it.
So, though it seems a bit messy and a lot of work and memory for a simple task, I started like this:
First, I make an array of the pixels that I want in green.
Like
int plus[5][5]{
{0,0,1,0,0},
{0,0,1,0,0},
{1,1,1,1,1},
{0,0,1,0,0},
{0,0,1,0,0}};
then I clear the screen with the standard line, and i set up two for loops, to check if it should be green or not. Like this:
for (int y=0; y<16; y++){
for (int x=0; x<31; x++){
if (plus[y][x]==1)
{matrix.drawPixel(x, y, matrix.Color333(0,1,0)); }
}}
So, when I get the typo's out, and make sure syntax is correct (which it often isn't) this still doesn't work.
Can anyone explain why?