I am new to Arduino. My goal is to make a project where each button will switch on 10 leds on 5M LED strip. I plant to use 30 buttons. Can somebody, anybody help me.
Although you could use 30 individual buttons on a Mega it would probably make more sense to use a keypad. Note that the keypad buttons do not have to be physically arranged in rows and columns if you need a different layout
If you mean a picture, all I have is an led strip and a four buttons connect to pull-up resistor. The goal of my project is make an animated led strip with a push button making changes on 10 separated LEDs attached to the same strip. Just working with my imagination. Keypad would pack the entire button in one place. I want the buttons separated with the segmented LEDs to cover the room.
Ok, so the buttons don't really need pull up resistors if you use the internal pull ups from the mega.
Personally i don't think it makes much sense what you want to do, but hey, if that's what you want to do, let's see if we can manage.
he does have a point there. You've shown us the code that includes a single button, which has commented out sections referring to other buttons.
Set it up for all the button you have at the moment, and please try not to use the same name for different variables.
What will that look like according to you ? (post the code)
what does that do that it shouldn't and does not do what it should ?
How have you wired things up ? Please show us a schematic (not fritzing !)