Why does my PWM Arduino loop not working as intended?
unless im reading this wrong , i would change if(amm = 255)to if(amm == 255)
you need a extra =, and then inside the brackets change amm == 0; to amm = 0;
src : http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B