Problem with a wemos R1 D2 Board

I´ve been developing a project recently that I want to connect and control it via wifi. I was using an arduino uno and now I bought a wemos R1 D2 Board with an esp8266 inside to do it. Before starting to connect the components of the project I wanted to firstly try and understand how it works.
So I decided to test it with a simple "hello world!" with a lcd 16x2 just like this https://www.arduino.cc/en/Tutorial/LibraryExamples/HelloWorld , I just changed some digital pins (11 and 12 to 6 and 7), because the wemos board didn't have those pins, and changed it in the code as well.
I also installed the "library" to make this board compatible with the Arduino IDE, it is the "esp8266 by ESP8266 community, with the most recent version available: 3.0.2", there I selected the "LOLIN (WEMOS) D1 R2 & mini"
I sent the code to the board, it sent successfully but the display didn't show any message. I also included the "Serial.begin and print to see if the circuit was making it to the setup or loop and what I got was some super wierd symbols like this, alongside with the code I used: Imgur: The magic of the Internet .
I already tried to change this to the arduino uno and it runs perfectly with the exact same code and connection. Also tried using an older version of the "library" to 2.1.0 as it was the one the person I saw was using in the tutorial, no success.
If I'm in the wrong subject inside this forum tell me, I'll change it immidiately
I can't understand what I'm doing wrong. I'm new in this kind of projects. I would be very thankful if you could help me find out what's wrong.
Thank you for your time!

it is a D1 R2.
it is called a boards support package, not 'library'.
in D1 R2 you have to use D2 instead of 2 for board pin labeled D2.
D2 and other Dn names are constants mapped to the right esp8266 io pin number.
some pins of the esp8266 are boot config pins. they require a HIGH or LOW on boot.

1 Like

Symbols like what?

Please post the complete sketch and complete error message following the advice in "How to get the best out of this forum" about using code tags.

I tried changing the 2 for D2 and it worked thank you!!!

@SteveMann That was what I posted in the imgur link: Imgur: The magic of the Internet alongside with the code I used. I already figured what the problem was, but next time I need something in this forum I'll post the complete sketch like that. Thank you anyways.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.