# Display-o-tron hat GPIO help

**URL:** <https://forums.pimoroni.com/t/display-o-tron-hat-gpio-help/16030>\
**Category:** Support\
**Created:** [January 27, 2021, 11:37pm UTC](https://forums.pimoroni.com/t/display-o-tron-hat-gpio-help/16030 "2021-01-27T23:37:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikewallis](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mikewallis](https://forums.pimoroni.com/u/mikewallis)\
**Post date:** [January 27, 2021, 11:37pm UTC](https://forums.pimoroni.com/t/display-o-tron-hat-gpio-help/16030/1 "2021-01-27T23:37:26Z")

</div>

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.

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 28, 2021, 8:52am UTC](https://forums.pimoroni.com/t/display-o-tron-hat-gpio-help/16030/2 "2021-01-28T08:52:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)\
**Post date:** [January 28, 2021, 8:54am UTC](https://forums.pimoroni.com/t/display-o-tron-hat-gpio-help/16030/3 "2021-01-28T08:54:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mikewallis](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mikewallis](https://forums.pimoroni.com/u/mikewallis)\
**Post date:** [January 28, 2021, 9:11am UTC](https://forums.pimoroni.com/t/display-o-tron-hat-gpio-help/16030/4 "2021-01-28T09:11:51Z")

</div>

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.setmode(GPIO.BCM)`  
`GPIO.setup(26, GPIO.OUT, initial=GPIO.LOW)`  
`while True:`  
`GPIO.output(26, GPIO.HIGH)`  
`sleep(1)`  
`GPIO.output(26, GPIO.LOW)`  
`sleep(1)`

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 28, 2021, 9:45am UTC](https://forums.pimoroni.com/t/display-o-tron-hat-gpio-help/16030/5 "2021-01-28T09:45:14Z")

</div>

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