--
You received this message because you are subscribed to the Google Groups "arduino-pinchangeint-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "arduino-pinchangeint-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint...@googlegroups.com.
The library is oddly written in that all of the executable code is in a header file, which makes dynamic instantiation a nightmare.
--
You received this message because you are subscribed to the Google Groups "arduino-pinchangeint-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You might have an older version of the library. Nowadays, everything is in the .h file. But I don't understand why dynamic object creation is affected by the kinds of files used. Ultimately, it's all compiled. It's just a matter of how...I have a #define that I use to keep everything in order, maybe that's the secret, I'm not sure.
On Mon, Jul 14, 2014 at 11:41 AM, Alan Yorinks <yor...@gmail.com> wrote:
On 07/14/2014 12:20 PM, Michael Schwager wrote:
On Mon, Jul 14, 2014 at 10:55 AM, Alan Yorinks <yor...@gmail.com> wrote:
The library is oddly written in that all of the executable code is in a header file, which makes dynamic instantiation a nightmare.
This library is odd in that way, as well. This is because of the way the Arduino IDE works; from the RELEASE_NOTES of the PinChangeInt library:
"All the code has been moved into this .h file, so as to allow #define's to work from the user's sketch."
...I actually got that idea from Paul at pjrc.com.
--
-Mike Schwager
--
You received this message because you are subscribed to the Google Groups "arduino-pinchangeint-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint-discuss+unsub...@googlegroups.com.
Michael,
Using the adaencoder library which uses your library, I was able to incorporate encoder support into my StandardFirmata derivative sketch called FirmataPlus. The sketch allows for dynamic creation of encoder objects. Since adaencoder #includes your library, and the library itself has a separate header and implementation file, dynamic object creation is not an issue. With the pjrc library, everything is in the header making dynamic object creation (nearly) impossible.
Unfortunately, due to the inconsistencies across arduino processors in relation to interrupts, the only board that I can reliably provide encoder support for is the Uno :-(.
Alan
--
You received this message because you are subscribed to the Google Groups "arduino-pinchangeint-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint-discuss+unsub...@googlegroups.com.
--
-Mike Schwager