Multi-Dimensional Arrays, Retreving data.

Krzy1999:
So im coding some simple code. but have no idea on how to actualy begin or make this code. Im willing to pay you if you could help me with coding this shit. I'v made a multidimentional array. I want to be able to controll and update the position the the array. I'm using analog buttons. I can help you on what i've written allready and explain and awnser all of you'r questions over Teamspeak/Discord/Skype etc.

What are analog buttons?

What you want isn't at all difficult. The wiring is far more difficult than the program will be. Someone else can write the program, but since they don't have the hardware, they can't test it. It would be still up to you to debug their program. I'm sure you can write the program, but you may need to reframe your thinking. The trick is to take it one step at a time.

  1. Write a sketch that lights one LED.
  2. Write a sketch to read the four buttons (don't forget to explain what analog buttons are, in the picture they look like standard on/off 0/1 push buttons)
  3. Add the if statements to combine #1 and #2 (don't forget to not let the position go <0 or >15)

We can walk you through it. Let's begin.

Decide on where position x=0, y=0 is. Lower left?

Decide where you want the first LED to light.

Now I hate to say this, but start a blank sketch.

Write a sketch that turns on the one led at the start position (hint: declare two global variables posX and posY and set them to you selected start position).

Post your sketch when you have that done. Then we can walk through the next step.

This may sound kind of lame but trust me this process works. I have taught dozens of people and written hundreds of programs using it.