Now that you have explained to me how it works I can see the mistake hehe!, I was checking my breadboard and switches thinking I must have something wired wrong and then sat there and could'nt work it out haha.. so i just deleted the bit of code in the end!! but its a cool bit of code to learn and mess around withNow the reason that it worked for you when you took out that extra and statement about the button_delay is because of my previous error.
What is supposed to happen is that you press the button, it loads up a variable with the number 50. then it wont let you press a button again untill that variable has gone all the way back to 0 again. but because I was using the incorrect variable name, I was never actually decrementing this variable which therefor meant it would never get to 0 and you could never inc or dec the speed.
so if you ow use the above fixed code, it should work much better
I like the bit of code toggle(LED) thats a great command
Brad is there a tutorial about swordfish basic apart from looking on digital.diy? like all the commands you can use and what they do or mean?.