Coder Social home page Coder Social logo

pinchangeint's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pinchangeint's Issues

conflict with SoftwareSerial library

Hi. What correction should I make to compile arduino by including this library with: SoftwareSerial.h?
Thank you.
Hola. Que corrección debo hacer para que compile arduino al incluir esta librería con: SoftwareSerial.h?
Gracias.

Some compiling issues

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

getInterruptedPin not working

The function getInterruptedPin triggers an error while compiling.

The error is in PinChangeInt.h:61, where the define links the function to a function of PCintPort, wich doesn't exist.

The define now is like this
#define getInterruptedPin() PCintPort::getArduinoPin()

But should be like this
#define getInterruptedPin() PCintPort::arduinoPin

Maximum simultaneous Interrupts attachments?

I am currently working on a project which requires 8 Interrupt Attachments and obviously each with an exclusive ISR (Interrupt Service Routine). I was wondering if it is possible using this library?
I read somewhere that pins are defined, to be used as interrupt pins, in groups. And each group can function on a single ISR only.

multiple definition of ...

Hello,

I'm working with https://github.com/elegooofficial/ELEGOO-TumbllerV1.1-Self-Balancing-Car-Tutorial, which is the software of the Tumbler Self Balancing Car (a robot for fun but also education seeing that the source code is open source).
I'm struggling with the "include "PinChangeInt.h".
I want to be able to call this header file in each .cpp I need it.
Previously, it was called only once in the main.cpp, but it force the user to declare and define his variables and functions directly in the header files of his project.
If I want to declare my variables and functions in hpp files, and define them in cpp files, I'll have to include PinChangeInt in every cpp file who need it. This cause "multiple definition of (things in PinChangeInt.h)".

What can you advise me ??

Thank you !
Raphaël.

Pin Change Interrrupt from a sensor

Hi I am trying to detect pin change from the out put pin of a laser detector circuit i.e the output of an op amp is my input for interrupt pin But i cant seem to get it right because the count keeps on increasing and increasing. dnt know what is the problem. I've tried to debounce it by putting an rc circuit in front of the pin but no use. please help.

problem

Here is my code:

include <PinChangeInt.h>

define mypin 3

//#define m2 13

volatile int a=0;
volatile int a1=0;
void func(){
//digitalWrite(m2,1);
//delay(10);
//digitalWrite(m2,0);
a1=a;
a++;
}

void setup(){
pinMode(mypin, INPUT_PULLUP);
// pinMode(m2, OUTPUT);

attachPinChangeInterrupt(mypin,func, CHANGE);
Serial.begin(9600);
Serial.println("---------------------------------------");

}

void loop(){
// a=1;
// a=0;

//if(a==1)
//{
// Serial.println("i HAVE BEEN THERE IT WAS HORRIBLE");
// a=0;
//}
Serial.print("a=");
Serial.println(a,DEC);
//delay(750);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.