Open corke2013 opened 2 years ago
As far as I can see, in AtTinyCore, digitalPinToInterrupt
will return NOT_AN_INTERRUPT
for any pin except CORE_INT0_PIN
, which PIN_B1
.
#define CORE_INT0_PIN PIN_B1
#define digitalPinToInterrupt(p) ((p) == CORE_INT0_PIN ? 0 : NOT_AN_INTERRUPT)
So by using PA3
your request to attach an interrupt is probably kicked to the curb. Try to use PIN_B1
.
I used the
LoRa Receiver Callback
example and changed only the operating frequency and pins usingsetPins
shown in the code below. I connectedDIO0
to pinPA3
/PCINT3
,SS
toPA0
/PCINT0
andRESET
toPB3
/PCINT11
.I hooked up an oscilloscope to the
DIO0
pin and can see it get pulled high the moment a message is received, however theonReceive
callback is never called. I can confirm this by hooking the oscilloscope to theTX
/PA1
/PCINT1
pin. I have tried other things like driving a pin high to light up an LED ect, but nothing seems to work.I am not sure if the ATtiny 84/85 are supported at all, but everything else seems to work fine except this. I really want to get it working if possible 🥲.