B4R Question WeMos D1 R2 Compile Error

canalrun

Well-Known Member
Licensed User
I'm using a WeMos D1 R2 with version 1.0 of B4R.

I have successfully run the WeMos Blink example Using the Arduino IDE.

I'm trying to compile and run the B4R Blink Tutorial. I have version 1.68 of the Arduino IDE installed. I get the following compile error message.

I have seen something similar for a different board in the B4R forum. Is this something easy to fix?

B4X:
B4R version: 1.00
Parsing code.    (0.01s)
Compiling code.    (0.02s)
Building project    (0.04s)
Compiling & deploying Ino project (WeMos D1 R2 & mini (CpuFrequency=80) - COM4)    Error

sketch\B4RArduino.cpp: In member function 'void B4R::Serial::Initialize2(ULong, Byte)':
B4RArduino.cpp:53: error: invalid conversion from 'Byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]
   ::Serial.begin(BaudRate, Config);
                                  ^
In file included from C:\Users\Barry\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Arduino.h:246:0,
                 from sketch\B4RDefines.h:8,
                 from sketch\B4RArduino.cpp:1:
C:\Users\Barry\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/HardwareSerial.h:77:10: error:   initializing argument 2 of 'void HardwareSerial::begin(long unsigned int, SerialConfig)' [-fpermissive]
     void begin(unsigned long baud, SerialConfig config)
          ^
exit status 1
invalid conversion from 'Byte {aka unsigned char}' to 'SerialConfig' [-fpermissive]

Thanks,
Barry.
 
Top