Comments (4)
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.
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.
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.
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)
- Serial3.setTimeout(...) is not expiring with the rx line always idle.
- Enabling ADC 14, 15 on Due
- If interrupt attached to 2 or more pins of a port, detachInterrupt() doesn't work correctly HOT 1
- Print/Stream API is old. availableForWrite is missing HOT 1
- Serial.readBytesUntil() is either misleading or buggy
- Wire does not play nicely with Adafruit I2C FRAM breakout board HOT 1
- IPAddress missing definition of operator!=()
- adc_set_resolution bug
- adc_configure_trigger bug
- Support for USART2? HOT 1
- HID.sendReport - Stack overflow
- Offset millis count "_dwTickCount" to desired value for runtime retentation from eeprom HOT 2
- _sbrk has no bounds checking HOT 2
- Wire.setWireTimeout() not supported SAM3X
- Insufficient initialization in Serial1.begin()
- No Support for C++ Standard Libraries HOT 1
- Hope to support at least C++14 soon
- <iostream> not usable
- std::locale [con/de]structor undefined
- Unexpected extra characters appeared in the IDE Serial Monitor when write to Serial in loop()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinocore-sam.