fablab-luenen / McLighting

The ESP8266 based multi-client lighting gadget
MIT License
216 stars 30 forks source link

Can't compile Version 2.2.6 rgbw 3colors: no matching function 'NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::Update(bool)' #41

Closed rlesac closed 4 years ago

rlesac commented 4 years ago

I can't get the latest version to compile. Here's the error:


In file included from h:\Documents\Arduino\libraries\NeoPixelBus_by_Makuna\src/NeoPixelBus.h:67:0,

                 from H:\Documents\Arduino\espLight\McLighting\Arduino\McLighting\McLighting.ino:113:

h:\Documents\Arduino\libraries\NeoPixelBus_by_Makuna\src/internal/NeoEsp8266DmaMethod.h:51:127: error: declaration of C function 'void rom_i2c_writeReg_Mask(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)' conflicts with

     void rom_i2c_writeReg_Mask(uint32_t block, uint32_t host_id, uint32_t reg_add, uint32_t Msb, uint32_t Lsb, uint32_t indata);

                                                                                                                               ^

In file included from C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/esp8266_peri.h:25:0,

                 from C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:38,

                 from sketch\McLighting.ino.cpp:1:

C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/esp8266_undocumented.h:9:13: error: previous declaration 'void rom_i2c_writeReg_Mask(int, int, int, int, int, int)' here

 extern void rom_i2c_writeReg_Mask(int, int, int, int, int, int);

             ^

H:\Documents\Arduino\espLight\McLighting\Arduino\McLighting\McLighting.ino: In function 'void DMA_Show()':

McLighting:170:24: error: no matching function for call to 'NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::Update(bool)'

       dma->Update(false);

                        ^

H:\Documents\Arduino\espLight\McLighting\Arduino\McLighting\McLighting.ino:170:24: note: candidate is:

In file included from h:\Documents\Arduino\libraries\NeoPixelBus_by_Makuna\src/NeoPixelBus.h:67:0,

                 from H:\Documents\Arduino\espLight\McLighting\Arduino\McLighting\McLighting.ino:113:

h:\Documents\Arduino\libraries\NeoPixelBus_by_Makuna\src/internal/NeoEsp8266DmaMethod.h:255:26: note: void NeoEsp8266DmaMethodBase<T_SPEED>::Update() [with T_SPEED = NeoEsp8266DmaSpeed800Kbps]

     void ICACHE_RAM_ATTR Update()

                          ^

h:\Documents\Arduino\libraries\NeoPixelBus_by_Makuna\src/internal/NeoEsp8266DmaMethod.h:255:26: note:   candidate expects 0 arguments, 1 provided

In file included from sketch\mode_custom_ws2812fx_animations.h:10:0,

                 from H:\Documents\Arduino\espLight\McLighting\Arduino\McLighting\McLighting.ino:267:

h:\Documents\Arduino\libraries\FastLED/FastLED.h: At global scope:

h:\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.002

 #    pragma message "FastLED version 3.003.002"

                     ^

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

                 from sketch\mode_custom_ws2812fx_animations.h:10,

                 from H:\Documents\Arduino\espLight\McLighting\Arduino\McLighting\McLighting.ino:267:

h:\Documents\Arduino\libraries\FastLED/fastspi.h:130: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"

                       ^

exit status 1
no matching function for call to 'NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::Update(bool)'
rlesac commented 4 years ago

Forgot to update the Neopixelbus library. After update compiles and works fine.