John R McAlpine V Mac
Published © GPL3+

Raspberry Pi Power Switch in 2 Lines of Code

How to configure your McPi Raspberry Pi case power switch.

BeginnerProtip30 minutes4,239
Raspberry Pi Power Switch in 2 Lines of Code

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
Model 3B+
×1
MACSBOOST McPi Carbon Fiber Aluminum Raspberry Pi Case
×1

Software apps and online services

Raspbian
Raspberry Pi Raspbian

Story

Read more

Schematics

MACSBOOST McPi Case Power Switch and Power LED Pinout

Code

Raspberry Pi Power Switch and Power LED Code

Plain text
#Added below for the MACSBOOST.com McPi Raspberry pi case soft shutdown and start blue ring led switch.
#https://www.macsboost.com/2019/01/24/mcpi-carbon-fiber-aluminum-racing-raspberry-pi-case
dtoverlay=gpio-shutdown 
enable_uart=1 

Credits

John R McAlpine V Mac

John R McAlpine V Mac

17 projects • 87 followers
www.MACSBOOST.com Assistant Teaching Professor at UNC Charlotte MEGR3171 Instrumentation, Motorsports Research

Comments