Skip to content
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

failed to find document avr/io.h #18

Open
Somnus0737 opened this issue May 18, 2018 · 9 comments
Open

failed to find document avr/io.h #18

Somnus0737 opened this issue May 18, 2018 · 9 comments

Comments

@Somnus0737
Copy link

Oh,hello.I followed the guidance to put SoftEasyTranfer.h in the libraries,but the Arduino IDE couldn't find the avr/io.h when I compiled my project.What's the problem?Could you give me some advices?

@per1234
Copy link

per1234 commented May 18, 2018

Which board do you have selected in the Tools > Board menu?

@Somnus0737
Copy link
Author

nodemcu

@Somnus0737
Copy link
Author

Actually,I want to connect nodemcu to arduino uno by EasyTransfer

@beicnet
Copy link

beicnet commented Jun 23, 2018

@per1234 Can you help us with this?

I wish to run only I2C communication on WeMos D1 mini as master and Arduino Uno as slave, but like above described, I got compile error for the ESP8266 platform too, "fatal error: avr/io.h: No such file or directory"

@per1234
Copy link

per1234 commented Jun 23, 2018

It appears the #include <avr/io.h> is completely unnecessary. At a quick glance, I don't see any reason why the actual code of the library wouldn't work on any architecture that provides the standard Arduino library APIs.

So just comment out that line of the library code.

If you find the library works (not just compiles, actually works) with ESP8266 after that change, please comment here and I'll submit a pull request to remove the unnecessary avr/io.h dependencies.

@beicnet
Copy link

beicnet commented Jun 23, 2018

@per1234
Yes, commenting it out did the trick.
But, the example for the I2C not working for me.
They are compiling fine, but the slave device (Uno) is not apearing on the I2C bus.
I2C scanner says, "No I2C devices found", even tried with 2x Unos.

Any help would be appreciated!

p.s.
I put "EasyTransfer_RX_Example" as slave and "EasyTransfer_TX_Example" as master from the EasyTransferI2C example folder, is that correct?

@per1234
Copy link

per1234 commented Jun 23, 2018

Talking about an potentially unnecessary incompatibility with non-AVR architectures is reasonable for an issue tracker but now this is going more in the direction of a support request for your project. Further discussion on that topic is probably more appropriate for the Arduino Forum:
http://forum.arduino.cc/

EDIT 2018-06-23:
Forum thread link: http://forum.arduino.cc/index.php?topic=554637

@beicnet
Copy link

beicnet commented Jun 23, 2018

@per1234 Yes, I know that, but the included I2C examples are not working even with 2x Arduino Unos using Arduino IDE 1.8.2.

@ShadGates
Copy link

ShadGates commented May 1, 2019

FYI: EasyTransferI2C.h has the same problem, several unneeded includes at the top of the file, including the avr/io.h mentioned in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants