jaretburkett / Arduino-I2C-Port-Expander

Turn any Arduino compatable chip into an amazing I2C port expander / touch screen controller.
MIT License
18 stars 14 forks source link

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

Open alonewolfx2 opened 8 years ago

alonewolfx2 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 7 years ago

Was this ever resolved?

pfabri commented 5 years ago

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