I have made a program in which with the joystick turn on the LEDs of the matrix 8x8. I am not sure if what I have done is correct. I want to use the joystick button to turn on the led off the current position and keep it on. Should the following code work correctly?
Please Auto format your code in the IDE, use Copy for forum in the IDE and paste it here so that it is code tags to make it easier to read and copy for examination
And then run it and see if works or not. Arduinos are ideal for testing simple circuits. Why worry about what should theoretically happen, just test it and then tell us if there any problems.
We have no real idea what components you are using so we'd just be guessing.
Please read the post at the start of any forum , entitled "How to use this Forum".
OR https://forum.arduino.cc/index.php?topic=712198.0
Then look down to "code problems" about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Can you also post an image of your project, so we can see your component layout?
What hardware are you using?
WHERE???
Oh in your first post, please do not go back and edit and add to old and in particular Original Posts.
Posting in a new post would help with the flow of the thread if someone else starts to read it.
What do you mean "probably doesn't works correctly"?
What does you code do to the display?
I think I haven’t explained well, I wanted to say with the movement of the joystick move around the leds from the matrix but with the joystick button turn on the led in the current position. The program is modified and yes I have tried a simple program for only turn on a led in a specific position from the matrix but didn’t work.
I think the matrix is not working well but i'm not sure. Because I tried to use a simple code for only turn on a led from the matrix but didn't work. The code is for paint the leds from the matrix.
The example code is a proven bit of code that should work on a correctly wired display.
Even though it might not do what you require it will prove the integrity of your circuit.