Giter Site home page Giter Site logo

Comments (4)

agdl avatar agdl commented on August 18, 2024

From @3esmit on June 9, 2015 17:43

I've found out that executing pinMode is unattaching interrupts on DUE, maybe digitalWrite does that too.

from arduinocore-sam.

agdl avatar agdl commented on August 18, 2024

From @3esmit on June 9, 2015 17:46

I used the following code to test it:

void setup()
{
  Serial.begin(9600);
}
void myFunc() {
  Serial.println(3);
}
void loop() {
  byte command;

  if (Serial.available()) {
    command = Serial.read();
    switch(command) {
    case '1':
      attachInterrupt(18, myFunc, CHANGE);
      Serial.println(1);
      break;
    case '2':
      pinMode(18, INPUT_PULLUP);
      Serial.println(2);
      break;
    }
  }
}

from arduinocore-sam.

agdl avatar agdl commented on August 18, 2024

From @techpaul on February 1, 2016 14:52

Came across this issue on my PS2 keyboard libraries using V1.6.7 and Due board manager 1.6.6. My workaround for the library was put an architecture dependent detach and attach interrupt around the direction change for sending to the keyboard see PS2KeyAdvanced, this is then handled correctly and works seamlessly for me. Tested same library now on Uno/Mega/Due recently.

I expect some differences there are others as in AVR char is signed, SAM (Due) it is UNsigned so beware.

from arduinocore-sam.

agdl avatar agdl commented on August 18, 2024

From @iotvietmember on August 20, 2016 9:13

Hello
I am using Arduino Due kit. I try to using external interrupt on Due but I met error
Program is crashed at line: attachInterrupt(8, ISR_TX_PIN, CHANGE);
Can you help me?

from arduinocore-sam.

Related Issues (20)

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.