-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add ATTinyx61support #39
Comments
Not yet, but I can add support for it, if you like. It seems to support PCINT on all pins: |
Yes, I like it. I will be happy to test this on my project. I need a lot of independent pins, a few of which are interrupts. |
I accidentally commited the changes directly to master, without a PR. The commit is this one: Please test and report if it works. Please test all pins (not just a few), if possible. |
I've just released 1.2.9. Please test if that works for you. I expect that this should be an easy one and just work. If not, I will try to fix it ASAP. |
Hi,
I tested the library but without success.
I just replaced LED_BUILTIN by pinLED to place a led with its resistor on an
ATTiny861.
I attach a photo of the assembly and the modified source code.
The led lights up for 1 second but the button does not work
Did I make a mistake?
Thanks
…_____
De : NicoHood ***@***.***
Envoyé : mardi 18 mai 2021 19:33
À : NicoHood/PinChangeInterrupt
Cc : Alain; Author
Objet : Re: [NicoHood/PinChangeInterrupt] Ajout ATTinyx61 (#39)
I've just released 1.2.9. Please test if that works for you. I expect that
this should be an easy one and just work. If not, I will try to fix it ASAP.
�
You are receiving this because you authored the thread.
Reply to this email directly, view
<#39 (comment)
4848> it on GitHub, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7YQEZBCJH7E7WAPMU4QMLTO
KQFRANCNFSM4463HNPA> .
<https://github.com/notifications/beacon/AI7YQE4LPRSOGUCZNJCQ3JDTOKQFRA5CNFS
M4463HNPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGJCQQEA
.gif>
|
I cannot see a photo. Please paste your source, if possible. This is the example to use for testing: |
` |
Oups ! for this the button is on physical pin 14 and led on physical pin 4 |
Can you check what Can you also check if a normal digitalread on the button pin works? Which attiny core do you use? For example there are two versions for digital pins in this core: |
I have to go |
IDE 1.8.13 Tested with 4, PA4 and PCINT4 in digital mode, all is OK |
What does digitalPinToPCINT(4) return? |
I don't know. |
Something like:
if it is not true, please check against -1 or try & error all other numbers. |
There aren't separate interrupt vectors for each port either. ISR(PCINT_vect) covers everything (see table 9-1 in the datasheet for the list of interrupt vectors). |
Great progress on your PR so far! I want to note, that we need to also identify the root cause of the invalid |
Which Core are you using to support this attiny? I need to check if they defined every marco correct. PinChangeInterrupt/src/PinChangeInterrupt.h Line 103 in d604e1f
Edit: It would be nice if you can test that |
Is it possible to use PinChangeInterrupt with ATTiny861 ?
The text was updated successfully, but these errors were encountered: