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

Analog read and write not working if esp8266 as master #2

Open
alonewolfx2 opened this issue May 29, 2016 · 5 comments
Open

Analog read and write not working if esp8266 as master #2

alonewolfx2 opened this issue May 29, 2016 · 5 comments

Comments

@alonewolfx2
Copy link

alonewolfx2 commented May 29, 2016

i tried on esp8266_arduino ide and our esp8266_sming ide.Analog read and write not working if esp8266 as master. Have you any idea?

@jaretburkett
Copy link
Owner

How are you calling it? Are you using the digital pin notation or analog. You have to use the digital notation. So io.analogRead (14) instead of io.analogRead (A0). Can I see your sketch code?

@alonewolfx2
Copy link
Author

very basic code. Serial.println(io.analogRead(14));
its working arduino nano as master and another arduino nano as slave. but
its not working correctly esp8266 as master and arduino nano as slave

@jaretburkett
Copy link
Owner

Ok, I think I know what is going on. I am moving to version 2 and make some big changes. One thing going I did was use int vars instead of int_32 and so on. The int is a different size on esp82 than arduino. I'm not home right now, but I'll look at it when I get back.

@SlowBro904
Copy link

Was this ever resolved?

@pfabri
Copy link

pfabri commented May 20, 2019

@SlowBro904 Maybe he never got back home. Who knows.

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