Grumpy_Mike:
but I have changed LED to be 6
So have you got an external LED then?
Why are you using code that is writing in such a machine code way? There are much easier ways to achieve the same effect. As a learning exercise that code is useless.
No, I am using the LED which is the Arduino UNO's LED, and it was blinking.
This code is what I actually have, and I need to rewrite it to use an easier way.