Skip to content

Commit 559e9bf

Browse files
authored
Update led-matrix.md (#2459)
we are setting the pixel value from the third row and second column in this case frame[2][1] , and not how was writted before
1 parent 6ef8abd commit 559e9bf

File tree

1 file changed

+1
-1
lines changed
  • content/hardware/02.hero/boards/uno-r4-wifi/tutorials/led-matrix

1 file changed

+1
-1
lines changed

content/hardware/02.hero/boards/uno-r4-wifi/tutorials/led-matrix/led-matrix.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ byte frame[8][12] = {
8383

8484
This option is simple to understand, because you can see the image in the pattern of the array, and it is easy to edit in runtime. The ones in the array above form a heart, and that's the image you'd see on the screen.
8585

86-
To target an individual pixel you select its address and change the value, remember that you'll need to start counting at 0. So, the following line will target the third pixel from the left and the second from the top, then turn it on:
86+
To target an individual pixel you select its address and change the value, remember that you'll need to start counting at 0. So, the following line will target the third pixel from the top and the second from the left, then turn it on:
8787

8888
```arduino
8989
frame[2][1] = 1;

0 commit comments

Comments
 (0)