PPM-reader icon indicating copy to clipboard operation
PPM-reader copied to clipboard

Using PCINT instead of dedicated interrupts

Open NetBUG opened this issue 2 years ago • 0 comments

Hi,

the library currently works awesome in simple cases when the RC receiver has a merged PPM output pin. However, some of them do not, and it could be very useful to use 2-3-4 pins at once to handle several channels. Conventional interrupts do not work at ATMegas (there are three of them), but there is a pin change interrupt that can be attached to almost all of the pins. It requires slightly more code (i.e. reading each pin state, or reading the whole port and decomposing the value to individual channels). Did you think about it already?

NetBUG avatar Jun 30 '22 11:06 NetBUG