Please use the # button when posting code.
the line:-
pinMode(0, OUTPUT);
looks like you are using pin 0, this is the serial port. Generally you should avoid pins 0 and 1.
Please use the # button when posting code.
the line:-
pinMode(0, OUTPUT);
looks like you are using pin 0, this is the serial port. Generally you should avoid pins 0 and 1.