#11
Post
by mayur » 04 Sep 2020, 10:17
Hello Guys,
I am new to ESPeasy and also recently joined the forum hence cannot create a new thread and hence will add to this thread.
Currently, I am using ESPEasy_ESP82xx_mega-20200812 and added a plugin code for the ACS712 sensor. When I am trying to compile it gives a compilation error. I have tried adding libraries to documents-->Arduino folder but it is still not working. I am using Arduino version 1.6.12 and I have tried ESP8266 version of 2.4.0, 2.5.0 and 2.6.1. Can anyone help me to resolve my issue?
Error (ESP8266 version 2.6.1):-
Arduino: 1.6.12 (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new can abort), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
WARNING: Category 'LED' in library CHT16K33 LED Matrix Library is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library MechInputs is not valid. Setting to 'Uncategorized'
WARNING: Category 'Input' in library SerialSensors is not valid. Setting to 'Uncategorized'
Build options changed, rebuilding all
WARNING: library LiquidCrystal_I2C claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).
C:\Users\Desktop\REEPL\IoT\Codes\ESPEasy_ESP82xx_mega-20200812 - with changes\source\src\ESPEasy\_P036_FrameOLED.ino: In function 'boolean Plugin_036(uint8_t, EventStruct*, String&)':
C:\Users\Desktop\REEPL\IoT\Codes\ESPEasy_ESP82xx_mega-20200812 - with changes\source\src\ESPEasy\_P036_FrameOLED.ino:693:69: error: invalid conversion from 'const char*' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive]
P036_data->display->setFont(P036_data->ScrollingPages.Font);
^
In file included from C:\Users\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0\src/SSD1306Wire.h:34:0,
from C:\Users\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0\src/SSD1306.h:33,
from sketch\src/PluginStructs/P036_data_struct.h:9,
from C:\Users\Desktop\REEPL\IoT\Codes\ESPEasy_ESP82xx_mega-20200812 - with changes\source\src\ESPEasy\_P036_FrameOLED.ino:79:
C:\Users\SUYOG\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0\src/OLEDDisplay.h:254:10: error: initializing argument 1 of 'void OLEDDisplay::setFont(const uint8_t*)' [-fpermissive]
void setFont(const uint8_t *fontData);
^
Multiple libraries were found for "Servo.h"
Used: C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.1\libraries\Servo
Not used: C:\Program Files (x86)\Arduino\libraries\Servo
Multiple libraries were found for "ArduinoJson.h"
Used: C:\Users\Documents\Arduino\libraries\ArduinoJson
Not used: C:\Users\Documents\Arduino\libraries\ArduinoJson-6.x
Multiple libraries were found for "SSD1306.h"
Used: C:\Users\Documents\Arduino\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays-4.1.0
Not used: C:\Users\Documents\Arduino\libraries\esp8266-oled-ssd1306
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.