ImI'm developing a project where iI have a button connected to the Raspberry Pi GPIO where it sends shutdown command when pressed for 3 seconds. I also have a 16x2 LCD that outputs status messages. When iI press the button the Raspberry shutsdown, but the LCD is still on because the 5V GPIO is on while the power supply is connected.
How can iI switch off the 5V pin? Is there a way?
Thanks in advance!