Code compiles for Arduino but not for ESP

digohm
Posts: 1
Joined: Mon Aug 23, 2021 8:47 am

Code compiles for Arduino but not for ESP

Postby digohm » Mon Aug 23, 2021 9:02 am

Hi everyone,

I am new to the ESP universe and recently switched from Arduino to ESP.
In one of my hobby projects I use a ESP8266 Node MCU in combination with a 8 digit 7 segment display.
The manufacturer provides a library with examples and says it is compatible with Arduino and ESP.
I have hooked everything up and startet with the sample files. The problem is the sample files compile fine for Arduino but for ESP I receive lots of errors. Here is the link to the library on Github: https://github.com/DFRobot/DFRobot_LedDisplayModule
There is also someone with the same erros like me.

I would be very grateful if you could help me!
  1. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:92:123: error: default argument given for parameter 1 of 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' [-fpermissive]
  2.  void DFRobot_LedDisplayModule::setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82)
  3.                                                                                                                            ^
  4. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  5. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:130:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' here
  6.    void setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82);
  7.         ^
  8. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:92:123: error: default argument given for parameter 2 of 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' [-fpermissive]
  9.  void DFRobot_LedDisplayModule::setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82)
  10.                                                                                                                            ^
  11. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  12. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:130:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' here
  13.    void setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82);
  14.         ^
  15. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:92:123: error: default argument given for parameter 3 of 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' [-fpermissive]
  16.  void DFRobot_LedDisplayModule::setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82)
  17.                                                                                                                            ^
  18. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  19. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:130:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' here
  20.    void setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82);
  21.         ^
  22. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:92:123: error: default argument given for parameter 4 of 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' [-fpermissive]
  23.  void DFRobot_LedDisplayModule::setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82)
  24.                                                                                                                            ^
  25. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  26. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:130:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea4(int, int, int, int)' here
  27.    void setDisplayArea4(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82);
  28.         ^
  29. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 1 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  30.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  31.                                                                                                                                                                                                        ^
  32. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  33. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  34.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  35.         ^
  36. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 2 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  37.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  38.                                                                                                                                                                                                        ^
  39. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  40. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  41.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  42.         ^
  43. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 3 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  44.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  45.                                                                                                                                                                                                        ^
  46. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  47. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  48.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  49.         ^
  50. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 4 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  51.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  52.                                                                                                                                                                                                        ^
  53. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  54. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  55.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  56.         ^
  57. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 5 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  58.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  59.                                                                                                                                                                                                        ^
  60. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  61. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  62.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  63.         ^
  64. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 6 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  65.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  66.                                                                                                                                                                                                        ^
  67. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  68. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  69.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  70.         ^
  71. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 7 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  72.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  73.                                                                                                                                                                                                        ^
  74. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  75. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  76.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  77.         ^
  78. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:122:199: error: default argument given for parameter 8 of 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' [-fpermissive]
  79.  void DFRobot_LedDisplayModule::setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82)
  80.                                                                                                                                                                                                        ^
  81. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  82. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:136:8: note: previous specification in 'void DFRobot_LedDisplayModule::setDisplayArea8(int, int, int, int, int, int, int, int)' here
  83.    void setDisplayArea8(int areaData1 = 82,int areaData2 = 82,int areaData3 = 82,int areaData4 = 82,int areaData5 = 82,int areaData6 = 82,int areaData7 = 82,int areaData8 = 82);
  84.         ^
  85. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:249:138: error: default argument given for parameter 1 of 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' [-fpermissive]
  86.  void DFRobot_LedDisplayModule::print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82")
  87.                                                                                                                                           ^
  88. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  89. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:150:8: note: previous specification in 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' here
  90.    void print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82");
  91.         ^
  92. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:249:138: error: default argument given for parameter 2 of 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' [-fpermissive]
  93.  void DFRobot_LedDisplayModule::print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82")
  94.                                                                                                                                           ^
  95. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  96. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:150:8: note: previous specification in 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' here
  97.    void print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82");
  98.         ^
  99. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:249:138: error: default argument given for parameter 3 of 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' [-fpermissive]
  100.  void DFRobot_LedDisplayModule::print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82")
  101.                                                                                                                                           ^
  102. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  103. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:150:8: note: previous specification in 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' here
  104.    void print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82");
  105.         ^
  106. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:249:138: error: default argument given for parameter 4 of 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' [-fpermissive]
  107.  void DFRobot_LedDisplayModule::print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82")
  108.                                                                                                                                           ^
  109. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  110. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:150:8: note: previous specification in 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)' here
  111.    void print4(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82");
  112.         ^
  113. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp: In member function 'void DFRobot_LedDisplayModule::print4(const char*, const char*, const char*, const char*)':
  114. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:251:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  115.    if (buf1[0] != "82"){
  116.                   ^
  117. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:258:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  118.    if (buf2[0] != "82"){
  119.                   ^
  120. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:265:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  121.    if (buf3[0] != "82"){
  122.                   ^
  123. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:272:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  124.    if (buf4[0] != "82"){
  125.                   ^
  126. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp: At global scope:
  127. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 1 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  128.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  129.                                                                                                                                                                                                                                               ^
  130. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  131. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  132.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  133.           ^
  134. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 2 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  135.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  136.                                                                                                                                                                                                                                               ^
  137. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  138. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  139.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  140.           ^
  141. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 3 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  142.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  143.                                                                                                                                                                                                                                               ^
  144. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  145. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  146.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  147.           ^
  148. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 4 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  149.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  150.                                                                                                                                                                                                                                               ^
  151. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  152. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  153.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  154.           ^
  155. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 5 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  156.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  157.                                                                                                                                                                                                                                               ^
  158. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  159. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  160.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  161.           ^
  162. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 6 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  163.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  164.                                                                                                                                                                                                                                               ^
  165. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  166. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  167.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  168.           ^
  169. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 7 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  170.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  171.                                                                                                                                                                                                                                               ^
  172. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  173. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  174.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  175.           ^
  176. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:490:238: error: default argument given for parameter 8 of 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' [-fpermissive]
  177.  void DFRobot_LedDisplayModule::print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82")
  178.                                                                                                                                                                                                                                               ^
  179. In file included from C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:15:0:
  180. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.h:164:10: note: previous specification in 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)' here
  181.      void print8(const char buf1[] = "82",const char buf2[] = "82",const char buf3[] = "82",const char buf4[] = "82",const char buf5[] = "82",const char buf6[] = "82",const char buf7[] = "82",const char buf8[] = "82");
  182.           ^
  183. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp: In member function 'void DFRobot_LedDisplayModule::print8(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)':
  184. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:492:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  185.    if (buf1[0] != "82"){
  186.                   ^
  187. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:499:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  188.    if (buf2[0] != "82"){
  189.                   ^
  190. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:506:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  191.    if (buf3[0] != "82"){
  192.                   ^
  193. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:513:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  194.    if (buf4[0] != "82"){
  195.                   ^
  196. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:521:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  197.    if (buf5[0] != "82"){
  198.                   ^
  199. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:528:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  200.    if (buf6[0] != "82"){
  201.                   ^
  202. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:535:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  203.    if (buf7[0] != "82"){
  204.                   ^
  205. C:\Users\mjarek\Documents\Arduino\libraries\DFRobot_LedDisplayModule\DFRobot_LedDisplayModule.cpp:542:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  206.    if (buf8[0] != "82"){
  207.                   ^

Who is online

Users browsing this forum: No registered users and 89 guests