Help me achieving this effect through pinout

I have shared the code also.