Contact Us

One Nine Manufacturing Ltd, Pencoed Technology Park, Bridgend, CF35 5HZ 

Tel: 01656 861 366

info@raspberrypiplastics.co.uk

We Accept

  • White Twitter Icon
  • White Facebook Icon
  • White YouTube Icon

© 2019 oneninedesign Ltd

Power HAT case

We hope the assembly of the Power HAT case is intuitive but if you need help drop us an email and we'll do our best to help out.

You can find the quick start guide here:

Don't forget to add the 2 lines of code to the config.txt file:

Open terminal on Pi and type:
sudo nano /boot/config.txt
Then add the 2 lines of code:.

dtoverlay=gpio-poweroff,gpiopin=18,active_low=0
dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up

SAVE and Reboot the Pi
These settings allow a shutdown to be invoked by pulling a GPIO pin LOW (BCM17)
Once shutdown has completed, a GPIO pin is set Low (BCM18)

 

LibreELEC users:

Move into flash directory (using SSH):

cd /flash

 

By default /flash is mounted read-only so you need to type the following: -

mount -o remount,rw /flash

now we can edit the config file by typing

nano config.txt

 

Enter the 2 lines at the bottom of the file:

dtoverlay=gpio-poweroff,gpiopin=18,active_low=0dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up

Press Ctrl+x to exit and save by pressing RETURN/ENTER.

Next we need to setup a KEYMAP as the following:

Move to the relevant folder…

cd /storage/.kodi/userdata/keymaps

 

Create the .xml file…

nano keyboard.xml

 

Paste the following code into the file:

<keymap>

<global>

<keyboard>

<power>shutdown</power>

</keyboard>

</global>

</keymap>

Press Ctrl+x to exit and save by pressing RETURN/ENTER.

Finally reboot your system and the SHUTDOWN and STARTUP operation is managed by the power button.

Libreelec logo.png