Arduino Mega - additional Interrupts
hello all,
i'm new forum, , first post, i'll try explain in best detail can issue i'd resolving.
i'm using arduino mega, , i'd able use more 6 interrupts available (to honest, need 1 more - interface calls 7 rotary encoders use interrupts read).
i've read through can find, , tried using sample pcint code playground found here:
playground/main/pcint
but i've had little luck getting work. seems i'm not capable enough of programmer sift through of code in example sets interrupt on specific pin (not 1 of default pins).
any tackling problem appreciated.
thanks
andy
i'm new forum, , first post, i'll try explain in best detail can issue i'd resolving.
i'm using arduino mega, , i'd able use more 6 interrupts available (to honest, need 1 more - interface calls 7 rotary encoders use interrupts read).
i've read through can find, , tried using sample pcint code playground found here:
playground/main/pcint
but i've had little luck getting work. seems i'm not capable enough of programmer sift through of code in example sets interrupt on specific pin (not 1 of default pins).
any tackling problem appreciated.
thanks
andy
ok,
so i've answered own post - extent. seems minor bug holding me in defining additional interrupts. -
i've noticed code reading rotary encoder behaves quite differently when being called pcattachinterrupt function standard attachinterrupt function. code reads encoder when called attachinterrupt, when call pcattachinterrupt more inconsistent results. maybe it's timing issue, or maybe i'm not setting pull-up resistor right?
any appreciated.
andy
so i've answered own post - extent. seems minor bug holding me in defining additional interrupts. -
i've noticed code reading rotary encoder behaves quite differently when being called pcattachinterrupt function standard attachinterrupt function. code reads encoder when called attachinterrupt, when call pcattachinterrupt more inconsistent results. maybe it's timing issue, or maybe i'm not setting pull-up resistor right?
any appreciated.
andy
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Arduino Mega - additional Interrupts
arduino
Comments
Post a Comment