Trying to compile the AdaEncoder library from the MyEncoder example Google Code Archive - Long-term storage for Google Code Project Hosting. I get this error:
In file included from MyEncoder.pde:3:
/Users/turgo/Documents/Arduino/libraries/ooPinChangeInt/ooPinChangeInt.h:230: error: no matching function for call to ‘PCintPort::PCintPort(int, int, volatile unsigned char&)’
/Users/turgo/Documents/Arduino/libraries/ooPinChangeInt/ooPinChangeInt.h:164: note: candidates are: PCintPort::PCintPort(int, volatile uint8_t&)
/Users/turgo/Documents/Arduino/libraries/ooPinChangeInt/ooPinChangeInt.h:162: note: PCintPort::PCintPort(const PCintPort&)
/Users/turgo/Documents/Arduino/libraries/ooPinChangeInt/ooPinChangeInt.h:234: error: no matching function for call to 'PCintPort::PCintPort(int, int, volatile unsigned char&)'
/Users/turgo/Documents/Arduino/libraries/ooPinChangeInt/ooPinChangeInt.h:164: note: candidates are: PCintPort::PCintPort(int, volatile uint8_t&)
/Users/turgo/Documents/Arduino/libraries/ooPinChangeInt/ooPinChangeInt.h:162: note: PCintPort::PCintPort(const PCintPort&)
Looking at those lines, the “PCintPort(10,1,PCMSK1)” call has an extra argument. How should it read?
223 #ifndef NO_PORTD_PINCHANGES
224 PCintPort portD=PCintPort(2,PCMSK2); // port PD==4
225 #endif
226
227 #ifdef __USE_PORT_JK
228
229 #ifndef NO_PORTJ_PINCHANGES
230 PCintPort portJ=PCintPort(10,1,PCMSK1); // port PJ==10
231 #endif
232
233 #ifndef NO_PORTK_PINCHANGES
234 PCintPort portK=PCintPort(11,2,PCMSK2); // port PK==11
235 #endif
236
237 #endif
Can anyone suggest a fix?