-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Due analog read #1740
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
Comments
I confirm that, this is probably a regression due to the latest patch here: May you check with IDE 1.5.4? C |
Argh, I've probably screwed up with git, I've committed the fix on my local copy but didn't pushed it on github, and when I've merged the pull request the fix didn't pass through :-( May I ask you to do another thest with the IDE 1.5.5, and try to replace: Arduino/hardware/arduino/sam/cores/arduino/wiring_analog.c with the file here: and retry? |
I changed the implementation again, the following should work in every situation: thanks to Mark for the suggestion: http://forum.arduino.cc/index.php?topic=203322.msg1509907#msg1509907 |
Cool, I haven't had a chance to try any of this out yet. I'll let you know Don On Wed, Dec 18, 2013 at 8:52 AM, Cristian Maglie
|
Cristian, the only thing that worked for me was reverting to 1.5.4. Don On Wed, Dec 18, 2013 at 10:50 AM, Don Shannon donelson.shannon@gmail.comwrote:
|
@donelsonas http://arduino.cc/en/Main/Software C |
Line 168 was commented out in wiringanalog.c |
@blueminerals this change is scheduled for release in 1.5.6, and its already available in the nightly build for testing. http://arduino.cc/en/Main/Software (look on the "Nightly build" section of the download page) Any testing feedback is really welcome. |
It looks like something else is broken. This compiled in 1.5.5. Arduino: nightly (Windows 7), Board: "Arduino Due (Programming Port)" In file included from sketch_ac_ino.ino:6: C:\Users\JSweda\Documents\Arduino\libraries\Adafruit_MAX31855/Adafruit_MAX31855.h:26: error: expected ')' before numeric constant C:\Users\JSweda\Documents\Arduino\libraries\Adafruit_MAX31855/Adafruit_MAX31855.h:26: error: expected ')' before numeric constant C:\Users\JSweda\Documents\Arduino\libraries\Adafruit_MAX31855/Adafruit_MAX31855.h:26: error: expected ';' before numeric constant sketch_ac_ino:44: error: no matching function for call to 'Adafruit_MAX31855::Adafruit_MAX31855(int, int, int)' C:\Users\JSweda\Documents\Arduino\libraries\Adafruit_MAX31855/Adafruit_MAX31855.h:24: note: candidates are: Adafruit_MAX31855::Adafruit_MAX31855() C:\Users\JSweda\Documents\Arduino\libraries\Adafruit_MAX31855/Adafruit_MAX31855.h:24: note: Adafruit_MAX31855::Adafruit_MAX31855(const Adafruit_MAX31855&) From: Cristian Maglie [mailto:notifications@github.com] @blueminerals https://github.com/blueminerals this change is scheduled for release in 1.5.6, and its already available in the nightly build for testing. http://arduino.cc/en/Main/Software (look on the "Nightly build" section of the download page) Any testing feedback is really welcome. — |
your last error seems unrelated to analogRead(), but to MAX31855 library:
more precisely I think that has something to do with: #758 |
@blueminerals may you retry with IDE 1.5.6? |
Closing this one, feel free to reopen if if the problem persists. |
I have listed this issue on github and other places and have gotten no response. In the 1.5.x arduino ide, the javaw.exe uses 50 % of the cpu bandwidth. Can you help me or refer me to someone else who can tell me why this is happening? This happens in linux and the pc, perhaps not on the mac. From: Cristian Maglie [mailto:notifications@github.com] @blueminerals https://github.com/blueminerals may you retry with IDE 1.5.6? — |
I'm trying to read multiple analog sensors with the Due board. Reading one sensor works fine, but when I try to read two or more, the device returns garbage. This same code works fine on the Uno. I found a web posting about this issue and it has a work around that doesn't seem to work anymore.
Also, analogReference() does not compile with the due.
Here's my code:
The text was updated successfully, but these errors were encountered: