-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some compiling issues #1
Comments
Thanks for the bug reports. I haven't compiled the Example against a Mega, And yeah, I screwed up on the pins for the Uno... fixed. Making the #define NO_PORTB_PINCHANGES is done like this: The user of the library will put that code in their sketch. Following the #include <PinChangeInt.h> Thus the code inside the PinChangeInt library will recognize the #ifdef PORTB_PINCHANGES ...This means, that only if PORTB_PINCHANGES is defined, will the code The C++ in the PinChangeInt library does not make it fat. You'd be But in return for that fat, you get the programming time savings that a Thanks for the pointer to the discussion... it really got me thinking. I Your code is a good example of what I'm talking about: You have one pin and On Sat, Nov 15, 2014 at 3:55 PM, Nico [email protected] wrote:
-Mike Schwager |
Wanna have a look at my new PCINT library which is even more compact than normal interrupts? One thing i'd like to know is, how i can inline the whole ISR in the .h file. That didnt wok for me with 1.5.8. Any suggestions? Also i still need to rename the cpp to c (not really needed, but its not c++ used) but then the weak function wont compile the properly. It would be nice if you could have a look. :) |
I noticed some general compiling issues:
PinChangeIntExample:
line 104-106 you need to remove the "{"
line 57-59 doesnt work for an Uno. A uno doesnt have these pins.
Might be in different examples as well, haven't checked this.
And i've some general questions:
How did you made the definition like #define NO_PORTB_PINCHANGES usable in your .h file? What do i have to include to get this feature too?
I am developing an Infrared library which also uses PCINTs. I was searching through the web and only found this library. But the c++ made it very fat. It might be powerful but not for my needs maybe. This lib is powerful, but very hard to understand for beginners. And if you are an expert, you probably dont need this library. Maybe you want to join this discussion (if you havent already)
https://groups.google.com/a/arduino.cc/forum/#!searchin/developers/pcint/developers/GkCunoVbuVA/8rOKCewPLRAJ
If you have any suggestions how to probably improve this, let me know. Thx. https://github.com/NicoHood/IRLremote/blob/master/examples/Advanced/Receive_PinChangeInterrupt_Basic/Receive_PinChangeInterrupt_Basic.ino
~NicoHood
The text was updated successfully, but these errors were encountered: