• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Attach 2 irq(s) to same pin

Q&A Forum › Category: Raspberry Pi › Attach 2 irq(s) to same pin
0 Vote Up Vote Down
Ray Leiter asked 2 years ago

Using the RPi PICO W;
If a pin is out and goes hi and then goes lo (within a couple of seconds), is it OK to attach 2 irq(2) to the same pin, one for RISING edge and one for FALLING edge?
I am wondering if the falling edge irq would have to be done within the rising edge isr?
Thanks,
Ray

Question Tags: Interrupts, irq, isr
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Yes. I think you can do that. Two different edges to the same pin.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Smart Home with Raspberry Pi, ESP32, and ESP8266 V1.6 September 9, 2025
  • [eBook Updated] Learn LVGL: Build GUIs for ESP32 Projects – Version 1.5 July 7, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.