-->
Page 3 of 4

Re: Which LCD are suitable for ESP8266 and Arduino IDE ?

PostPosted: Tue Jan 26, 2016 1:09 pm
by shah
WereCatf wrote:
shah wrote:Thank you for your reply. But I don't see begin() taking GPIO pins in the function prototype. It only takes optional address of the device.
https://www.arduino.cc/en/Reference/WireBegin
Am I missing something?


The ESP uses its own Wire-library ( https://github.com/esp8266/Arduino/blob ... re-library ), which does accept those arguments.


Ah, great. I will try it out.
Thanks.

Re: Which LCD are suitable for ESP8266 and Arduino IDE ?

PostPosted: Tue Jan 26, 2016 11:26 pm
by shah
WereCatf wrote:
shah wrote:Thank you for your reply. But I don't see begin() taking GPIO pins in the function prototype. It only takes optional address of the device.
https://www.arduino.cc/en/Reference/WireBegin
Am I missing something?


The ESP uses its own Wire-library ( https://github.com/esp8266/Arduino/blob ... re-library ), which does accept those arguments.


It worked! It worked! It worked! Thank you! Thank you!

I modified the LiquidCrystal_i2c library to use Wire.begin(0,2) and it worked!

I wonder if there is any #define macro for nodemcu or ESP that I could use to selectively call begin. Right now as it stands it is broke for Uno or Mega.

Re: Which LCD are suitable for ESP8266 and Arduino IDE ?

PostPosted: Wed Jan 27, 2016 9:30 am
by martinayotte
Yes, there is ARDUINO_ARCH_ESP8266 and ESP8266

Re: Which LCD are suitable for ESP8266 and Arduino IDE ?

PostPosted: Wed Jan 27, 2016 10:08 am
by shah
Ok great. Will try it out.

Thanks.