Skip to content

SPI library seems to be outdated in Arduino #6979

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

Closed
quirxi opened this issue Nov 30, 2017 · 2 comments
Closed

SPI library seems to be outdated in Arduino #6979

quirxi opened this issue Nov 30, 2017 · 2 comments
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug

Comments

@quirxi
Copy link

quirxi commented Nov 30, 2017

Operating System:
Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux
debian version: 9.2 (stretch)

Arduino Version: 2:1.0.5+dfsg2-4.1

Problem:
Trying to compile a sketch that uses the Adafruit-MAX31855-library and included "SPI.h" gave an error message saying that the symbol "beginTransaction" in "SPI.h" could not be found. I googled around and found out that other people had this problem, too. So I installed the newer version of the SPI library and everything compiled and worked flawlessly.
Also in the source code of the newer version of SPI.h it says that the old methods like "setBitOrder" or "setDataMode" are deprecated and the newer method "beginTransaction" should be used instead.

So I wonder if the SPI library that gets delivered with the arduino ide is a bit outdated and if yes if it could be replaced by the newer version ?

@per1234
Copy link
Collaborator

per1234 commented Nov 30, 2017

When you use apt-get to install the Arduino IDE you get a very outdated and possibly non-standard version of the Arduino IDE, thus the problem you encountered. Please always download the Arduino IDE from https://www.arduino.cc/en/Main/Software to get the latest official release.

@per1234 per1234 closed this as completed Nov 30, 2017
@per1234 per1234 added the Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug label Nov 30, 2017
@quirxi
Copy link
Author

quirxi commented Nov 30, 2017

Ok, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

No branches or pull requests

2 participants