# Need Interrupt Help

**URL:** <https://discuss.python.org/t/need-interrupt-help/84516>\
**Category:** Python Help\
**Created:** [March 14, 2025, 6:22pm UTC](https://discuss.python.org/t/need-interrupt-help/84516 "2025-03-14T18:22:15Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![onePythonUser](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/onepythonuser/32/19158_2.png) [@onePythonUser](https://discuss.python.org/u/onePythonUser)\
**Post date:** [April 19, 2025, 1:10pm UTC](https://discuss.python.org/t/need-interrupt-help/84516/30 "2025-04-19T13:10:18Z")

</div>

Can you provide the code where the `Push_Button_Function` function is called? You have only provided the function (and its body) that is called in the event that an edge is detected on `Pin 33` but you have not provided the conditional code that prompts this function to be called.

The print statements inside the body of this function only work to notify the user that the function is being called but it does not provide the reason why. For this, we need to move up one level and understand the set-up code or condition for which this function is called.

> [@Rchrd](#):
>
> ```python
> statusbar.config(text="Ready")
> :smiley:
> Restore_Buttons()
> 
> ```

What is: `:smiley:`? Is this even valid?

**Additional Review:**  
I was reviewing one of your earlier posts:

> [@GPIO Code Problem](https://discuss.python.org/t/gpio-code-problem/71373/3):
>
> ```python
> #=== Set GPIO Pins ===
> Toy_Sel_Pins = (14, 15)
> Abort_Pin =18
> Run_Pin = 23
> DIR_Pin = 24
> IntensitySelect_Pins = (1, 7, 8, 25) # Tell contrler ieinIntensity value
> Busy_Pin = 12
> BUZZER_Pin = 16
> PWR_LED_Pin = 20
> Ready_LED_Pin = 21
> PUSH_BUTTON_Pin = 37
> 
> ```

Note how you have the push button pin set up as `pin 37` in your previous set-up. But in this post, you have it as:

> [@Rchrd](#):
>
> ```python
> pushButton_Pin = 33
> 
> ```

Note that `Pin 37 -> GPIO26` and `Pin 33 -> GPIO6`. Can you verify your connections and that the `SW` pin setup configuration matches the physical `HW` connections. I am making the assumption that this is the same project and set-up. If not, then disregard.

---

_[View the full topic](https://discuss.python.org/t/need-interrupt-help/84516)._
