Is it at all possible to have both an interrupt and also use the DigiSpark as a keyboard?
I need to be able to count pulses coming in at a rate of 1 pulse per 70ms (pulse duration 50ms) and then convert the resulting number into a keypress.
I've read that I cannot use INT0 as this interferes with the USB timing, but all attempts to use PCINTn interrupts are failing due to re-declaration of the __vector_2 function. I've tried both the official DigiSpark "TinyPinChange" library and the PinChangeInterrupt one from NicoHood on Github.
I have seen some examples referencing the port directly, but these also seem reliant on __vector_2.
Am I pursuing a lost cause? Should I change to a device using the 32u4 processor instead?