no digital output from nano

briefly if I don’t erase all the related lines for p10 (libraries, definitions, etc) there is no digital output from D13. actually the digitalWrite command does not work.

pHread_with_twoAI_to_LED_panel.ino (19 KB)

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool. I recommend you to use the standard IDE instead.

Add some debugging Serial prints to your sketch so you can figure out what's going wrong.

emrahyigit:
briefly if I don't erase all the related lines for p10 (libraries, definitions, etc) there is no digital output from D13. actually the digitalWrite command does not work.

You're using SPI. 13 is the clock pin for the SPI port. If you're using SPI, 11, 12, and 13 are off limits and 10 may or may not be but it MUST be an output.