Display-o-tron hat GPIO help

Hi folks. I’m having a bit of trouble getting the GPIO pins on my display-o-tron hat to do anything.

I’m just trying to do a simple LED blink using the standard RPi.GPIO python library example, but nothing seems to be output on any of the hat GPIO pins labelled 5, 6, 13, 19 or 26. (I put a multimeter on each one, there’s no change in voltage)

The hat is on a rpi3b, if that makes any difference, and works fine in itself using the example python scripts provided. The gnd & 3.3/5v pins are also fine.

Any hints would be greatly appreciated.


Post the code your using. The ` can be used as code tags. On my keyboard its the ~ key in the upper left.

1 Like

Yup, code would be helpful. Make sure that when you’re declaring the pin you’re using BCM pin numbers, not BOARD numbers.

1 Like

Sorry, this can be ignored/closed now. I needed to power down the rpi rather than rebooting it to reset the pins, and the declared pin is now working.

Thanks, folks.

(the code was literally the example GPIO on/off below)
import RPi.GPIO as GPIO
from time import sleep
GPIO.setup(26, GPIO.OUT, initial=GPIO.LOW)
while True:
GPIO.output(26, GPIO.HIGH)
GPIO.output(26, GPIO.LOW)

Running GPIO.cleanup() should reset the pins and no having to reboot etc.