NANO Pinout - Automotive VW Buttons Illumination

Thanks - Actually it was just to display the pins I've connected to previously.

They're not both connected to D9 & 5V at the same time.... My bad, I should have clarified that.

So you mean my code should read:

const int ledPin =  D9;

Thanks for your reply