# NeoPixel Stick with PanTiltHat and motionEyeOS Action Button

**URL:** <https://forums.pimoroni.com/t/neopixel-stick-with-pantilthat-and-motioneyeos-action-button/12226>\
**Category:** Support\
**Created:** [November 22, 2019, 1:58pm UTC](https://forums.pimoroni.com/t/neopixel-stick-with-pantilthat-and-motioneyeos-action-button/12226 "2019-11-22T13:58:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joey73](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/joey73/32/1861_2.png) [@Joey73](https://forums.pimoroni.com/u/Joey73)\
**Post date:** [November 22, 2019, 1:58pm UTC](https://forums.pimoroni.com/t/neopixel-stick-with-pantilthat-and-motioneyeos-action-button/12226/1 "2019-11-22T13:58:33Z")

</div>

Hello FolkZ,

How can I switch the NeoPixel Stick on / off in conjunction with a PanTiltHat with MotionEyeOs via an Action Button?  
Can someone give a detailed guide here?

> **[ccrisan/motioneyeos](https://github.com/ccrisan/motioneyeos/wiki/Action-Buttons)**
>
> A Video Surveillance OS For Single-board Computers - ccrisan/motioneyeos

GreetZ  
Joey

---

<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:** [November 22, 2019, 2:40pm UTC](https://forums.pimoroni.com/t/neopixel-stick-with-pantilthat-and-motioneyeos-action-button/12226/2 "2019-11-22T14:40:16Z")

</div>

Have a look at this thread.

> [@Pan Tilt Hat Motion Eye OS action buttons](https://forums.pimoroni.com/t/pan-tilt-hat-motion-eye-os-action-buttons/12186):
>
> I’m trying to get my Pan Tilt Hat working in the latest Motion Eye. To do this you have to create Action Button Files and put them in a specific location. Problem is I can’t find that location /etc/motioneye as per here, There are three partitions / drives on the Motion Eye SD card, with etc folders on each one, none have a motioneye folder in them though? And which one is the right one? If anybody has done this, or is trying to do it, any help or insight you can offer will greatly be appr…

I do believe there are light on light off action buttons. Youd create thos buttons then put the python code for the pan tilt `set_all` ( _red_ , _green_ , _blue_ , _white=None_ ) to (0, 0, 0) for off. something like that

---

<div class="post-metadata">

**Author:** ![Joey73](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/joey73/32/1861_2.png) [@Joey73](https://forums.pimoroni.com/u/Joey73)\
**Post date:** [November 22, 2019, 7:55pm UTC](https://forums.pimoroni.com/t/neopixel-stick-with-pantilthat-and-motioneyeos-action-button/12226/3 "2019-11-22T19:55:40Z")

</div>

Added support for pimoroni’s pantilthat

> <https://github.com/ccrisan/motioneyeos/pull/2016>

---

<div class="post-metadata">

**Author:** ![Joey73](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/joey73/32/1861_2.png) [@Joey73](https://forums.pimoroni.com/u/Joey73)\
**Post date:** [November 22, 2019, 7:57pm UTC](https://forums.pimoroni.com/t/neopixel-stick-with-pantilthat-and-motioneyeos-action-button/12226/4 "2019-11-22T19:57:06Z")

</div>

> <https://stackoverflow.com/questions/55660233/how-to-integrate-pimoroni-pan-tilt-hat-with-motioneye>

---

<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:** [November 22, 2019, 8:12pm UTC](https://forums.pimoroni.com/t/neopixel-stick-with-pantilthat-and-motioneyeos-action-button/12226/5 "2019-11-22T20:12:34Z")

</div>

I saw that first link you posted after I had mine working. I had an open issue on the action buttons on the Motion Eye GitHub page. I was all done when it was finally posted to the thread I started. I got next to no help on the Motion Eye GitHub page. I have that info saved but haven’t looked all that closely at it, as I have a working solution for how I use my pan tilt.  
The second link looks to be for an Adafruit servo controller, not the Pimoroni Pan Tilt Hat.

Anyway, the link I posted is a thread I started here where I found a working solution to getting the buttons to show up in the Web GUI and work when clicked.

However you do it, please post back what you did and how it worked for you.
