Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use the ISR( PCINT0_vect )? #17

Open
MikeX7 opened this issue Apr 15, 2019 · 1 comment
Open

Ability to use the ISR( PCINT0_vect )? #17

MikeX7 opened this issue Apr 15, 2019 · 1 comment

Comments

@MikeX7
Copy link

MikeX7 commented Apr 15, 2019

This isn't really a bug, but rather a request to solve a problem which TinyWire presents, when you need to use the PCINT interrupts yourself.

I need to use PCINT interrupts on pins P3 and P4, but I cannot declare ISR( PCINT0_vect ){} in my sketch, because TinyWire has already declared it.
So it would be nice to have some way to perhaps tell the TinyWire that you wish to enable PCINT interrupts on additional pins (I think it only enables it on the SDA pin by default) and then supply TinyWire with a callback function which it calls when ISR( PCINT0_vect ) occurs, so I can execute some of my code as well during the interrupt.

I am not sure if this library is still actively developed, but it am using it as pure slave and it works great, while being simple to use.
This is the only feature I am missing from it.

@pilotak
Copy link

pilotak commented May 21, 2023

In case somebody finds this, here is an updated the code that provides a callback when PCINT0_vect is called
https://github.com/pilotak/TinyWire

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

No branches or pull requests

2 participants