News

moodlite - Coming soon


Trying to get V2 Working

BamBam86 · 502

BamBam86

  • Newbie
  • *
    • Posts: 4
    • Likes: +0/-0
    • View Profile
on: November 27, 2020, 02:19:34 PM
Hi All i'm trying to get V2 working but keep coming across the same error message with no way round it.

 
Quote
Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"



WARNING: library Timezone claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s).

In file included from C:\Users\Simon\OneDrive\Desktop\Arduino\moodlite.co.uk_-_Nanoleaf_clone_design_and_web_app\Moodlite_2019_01_27-V2.0\Arduino\Moodlite\Moodlite.ino:31:0:

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.004

 #    pragma message "FastLED version 3.002.004"

                     ^

In file included from C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/led_sysdefs.h:27:0,

                 from C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/FastLED.h:41,

                 from C:\Users\Simon\OneDrive\Desktop\Arduino\moodlite.co.uk_-_Nanoleaf_clone_design_and_web_app\Moodlite_2019_01_27-V2.0\Arduino\Moodlite\Moodlite.ino:31:

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/platforms/esp/8266/led_sysdefs_esp8266.h:15:17: error: conflicting declaration 'typedef uint8_t boolean'

 typedef uint8_t boolean;

                 ^

In file included from sketch\Moodlite.ino.cpp:1:0:

C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/Arduino.h:170:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'

 typedef bool boolean;

              ^

In file included from C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/FastLED.h:65:0,

                 from C:\Users\Simon\OneDrive\Desktop\Arduino\moodlite.co.uk_-_Nanoleaf_clone_design_and_web_app\Moodlite_2019_01_27-V2.0\Arduino\Moodlite\Moodlite.ino:31:

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output

 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"

                       ^

C:\Users\Simon\OneDrive\Desktop\Arduino\moodlite.co.uk_-_Nanoleaf_clone_design_and_web_app\Moodlite_2019_01_27-V2.0\Arduino\Moodlite\Moodlite.ino: In member function 'String& ByteString::copy(const void*, unsigned int)':

Moodlite:346:7: error: invalid use of member function (did you forget the '()' ?)

   len = length;

       ^

Moodlite:347:30: error: cannot convert 'String::buffer' from type 'const char* (String::)()const' to type 'void*'

   memcpy(buffer, data, length);

                              ^

Moodlite:348:16: error: invalid types '<unresolved overloaded function type>[unsigned int]' for array subscript

   buffer[length] = 0;

                ^

Multiple libraries were found for "ESP8266WiFi.h"

 Used: C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi

 Not used: C:\Users\Simon\OneDrive\Documents\Arduino\libraries\arduino-instagram-stats

exit status 1

invalid use of member function (did you forget the '()' ?)



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Can any one tell me where i'm going wrong here?

it appears to crop in this section:
Quote
   String& copy(const void *data, unsigned int length) {
      if (!reserve(length)) {
         invalidate();
         return (*this);
      }
      len = length;
      memcpy(buffer, data, length);
      buffer[length] = 0;
      return (*this);
   }
};
« Last Edit: November 27, 2020, 02:21:17 PM by BamBam86 »



BamBam86

  • Newbie
  • *
    • Posts: 4
    • Likes: +0/-0
    • View Profile
Reply #1 on: November 27, 2020, 02:53:02 PM
rahter typically i manged to get this sorted within moments of uploading however I now have the issues compiling for the Node MCU ESP8266, any suggestions?



BamBam86

  • Newbie
  • *
    • Posts: 4
    • Likes: +0/-0
    • View Profile
Reply #2 on: November 27, 2020, 03:04:51 PM
The new error message is as follows:
Quote
Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

WARNING: library Timezone claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s).

In file included from C:\Users\Simon\OneDrive\Desktop\Arduino\moodlite.co.uk_-_Nanoleaf_clone_design_and_web_app\Moodlite_2019_01_27-V2.0\Arduino\Moodlite\Moodlite.ino:31:0:

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.004

 #    pragma message "FastLED version 3.002.004"

                     ^

In file included from C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/FastLED.h:65:0,

                 from C:\Users\Simon\OneDrive\Desktop\Arduino\moodlite.co.uk_-_Nanoleaf_clone_design_and_web_app\Moodlite_2019_01_27-V2.0\Arduino\Moodlite\Moodlite.ino:31:

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\FastLED/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output

 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"

                       ^

In file included from C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include/string.h:163:0,

                 from C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Arduino.h:33,

                 from C:\Users\Simon\OneDrive\Documents\Arduino\libraries\Time-master\DateStrings.cpp:12:

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\Time-master\DateStrings.cpp: In function 'char* monthStr(uint8_t)':

C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:76:81: error: 'const void*' is not a pointer-to-object type

     #define pgm_read_ptr(addr)              (*reinterpret_cast<const void*>(addr))

                                                                                 ^

C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include/sys/string.h:32:57: note: in definition of macro 'strcpy_P'

 #define strcpy_P(dest, src)          strncpy_P((dest), (src), SIZE_IRRELEVANT)

                                                         ^

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\Time-master\DateStrings.cpp:72:29: note: in expansion of macro 'pgm_read_ptr'

     strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(monthNames_P[month])));

                             ^

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\Time-master\DateStrings.cpp: In function 'char* dayStr(uint8_t)':

C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:76:81: error: 'const void*' is not a pointer-to-object type

     #define pgm_read_ptr(addr)              (*reinterpret_cast<const void*>(addr))

                                                                                 ^

C:\Users\Simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include/sys/string.h:32:57: note: in definition of macro 'strcpy_P'

 #define strcpy_P(dest, src)          strncpy_P((dest), (src), SIZE_IRRELEVANT)

                                                         ^

C:\Users\Simon\OneDrive\Documents\Arduino\libraries\Time-master\DateStrings.cpp:86:28: note: in expansion of macro 'pgm_read_ptr'

    strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(dayNames_P[day])));

                            ^

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.

I'm fairly new to arduino and am now completely lost.



BamBam86

  • Newbie
  • *
    • Posts: 4
    • Likes: +0/-0
    • View Profile
Reply #3 on: November 29, 2020, 10:46:49 AM
OK i totally unistalled arduino wiped every library on my machine and started again. I'm still getting the compiling error when testing. Any help, is any one still even active on the forum?



 


SMF spam blocked by CleanTalk