bborncr / nextion

A simple Nextion HMI library for Arduino
GNU General Public License v3.0
127 stars 66 forks source link

in Esp8266 wemos d1 r2 #22

Open tuneyli opened 7 years ago

tuneyli commented 7 years ago

we can not use this library in Esp8266 wemos d1 r2. How can we reconfig this library for wemos. no matching function for call to 'Nextion::Nextion(HardwareSerial&, int) in arduino is giving bad function.

http://esp8266.github.io/Arduino/versions/2.0.0/doc/reference.html#serial

thanks

GrexAut commented 7 years ago

Hi, got it working with wemos d1 r2. First you need this SoftwareSerial Library: https://github.com/plerup/espsoftwareserial (I used latest release).

Then you have to set Software Serial with: SoftwareSerial nextion(4, 5); 4 => D1 5 => D2

And the connect: D1 => RX D2=>TX

Best regards