Arduino mega 1280 W5100 udp all outputs not working??

Hi all i am a little new to Arduino and i am trying to set up a project where an Arduino mega1280 is controlled from an Iphone via udp.

So far so good but the only issue i have is that the digital output pins 32 and above doesn't seem to work even tho the code is exactly the same as the previous pins. I have tried 2 different Arduino boards with the same results.

Can anybody help me?

Can you please post all of your code (in code tags).

Its one huge mess. this is the first time i have tried to do anything like this :slight_smile:

I'm strugling to post it so I have attached a text doc

code.txt (35.3 KB)