adding two codes togeter?

Hello,
So I have a fading LED, and now I am trying to toggle that with a button. So am trying turn on off the LED thats fading in and out).

I've spent the last couple hours trying to figure that out, but no idea how... im new to programming and arduino, so please explain as much as possible... thanks so much!

I type in "Arduino LED fading" into Google and got over 130,000 hits. I'll be one of those is just about perfect.

econjack:
I type in "Arduino LED fading" into Google and got over 130,000 hits. I'll be one of those is just about perfect.

Yeah for sure!
I found code for turning an LED on and off with a button, and a seperate code for fading. Now im trying to put them together, cant figure out how though...

Show us the code you have and perhaps we can help. Please read the How-To-Post sticky at the top of this Forum by Nick Gammon, especially on the use of code tags.