Skip to content

Conversation

@ysoldak
Copy link
Contributor

@ysoldak ysoldak commented Jul 24, 2023

This adds support for pin change interrupts on AVR, atmega328p chip used by Arduino UNO and Nano boards.
Fixes #3145

This PR is based on work done by @mrbell321 in #3139 (that PR apparently stalled).

Implemented in addition to original PR:

  • Support for de-registering of callbacks (passing nil)
  • Support for PinRising and PinFalling
  • PinInterrupt example for "arduino" target

Verified on Arduino UNO by shorting D2 and GND pins: LED changes on breaking the contact (as expected).

@deadprogram
Copy link
Member

Thank you for the addition @ysoldak now merging.

@deadprogram deadprogram merged commit 00d46bd into tinygo-org:dev Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants