I’ve had my fair share of raspberry experience, but that’s all on software level.
And now? It’s time for something new. I want to build a pinas, I’ve got two of them running, but that’s all with premade boards, enclosures etc.
I’ve recently bought a 3d printer and want to make an enclosure myself. Designing, fabricating and testing is not a problem at all however I’ve run into a bit of a gpio programming problem. Also this would be my first pi 5
I want a power button at the front of the enclosure, there are a ton of videos on how to install the button on gpio pin 3 etc. However, I’d love for my power button to have multiple functions namely:
If you press the button for a single second nothing should happen.
If you press the button for 2-3 seconds I want the pi to reboot
If you press the button for 4-7 seconds I want the pi to safely shut down
If you press the button for 10 seconds I want the pi to force shutdown.
Is this possible without having a script continue running and checking for the button state?
Also, are there any people with experience in relocating the LAN port on the pi?
(This is just for esthetics)
Cheers!