debsahu / E131_PixelPusher

Minimalistic Async code around Async E131 for ESP8266
MIT License
19 stars 9 forks source link

problem code... #4

Open rocket-hub opened 4 years ago

rocket-hub commented 4 years ago

Hi Debashish i have this problem with your code can you help me?

Arduino:1.8.12 (Windows Store 1.8.33.0) (Windows 10), Scheda:"ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

C:\Users\serap\Documents\Arduino\E131_PixelPusher-master\E131_PixelPusher-master\Arduino\E131_PixelPusher\E131_PixelPusher.ino: In function 'void initDMA()':

E131_PixelPusher:246:15: error: expected type-specifier before 'NeoEsp32RmtWs2813Method'

     dma = new NeoEsp32RmtWs2813Method(PIN, ledCount, 3);

               ^

C:\Users\serap\Documents\Arduino\E131_PixelPusher-master\E131_PixelPusher-master\Arduino\E131_PixelPusher\E131_PixelPusher.ino: In function 'void setup()':

E131_PixelPusher:333:10: error: 'class WiFiClass' has no member named 'mode'

     WiFi.mode(WIFI_STA); // Make sure you're in station mode

          ^

E131_PixelPusher:333:15: error: 'WIFI_STA' was not declared in this scope

     WiFi.mode(WIFI_STA); // Make sure you're in station mode

               ^

E131_PixelPusher:334:10: error: 'class WiFiClass' has no member named 'setHostname'

     WiFi.setHostname(const_cast<char *>(NameChipId));

          ^

exit status 1
expected type-specifier before 'NeoEsp32RmtWs2813Method'
debsahu commented 4 years ago

Please use NeoPixelBus version 2.5.3 https://github.com/Makuna/NeoPixelBus/releases/tag/2.5.3

debsahu commented 4 years ago

I pushed new updates to https://github.com/debsahu/E131_PixelPusher/tree/develop , could you check that out and use latest version of libraries.

rocket-hub commented 4 years ago

Hi thanks for the timely reply and for the new code ... but I always get the same error

xit status 1 expected type-specifier before 'NeoEsp32RmtWs2813Method'

test on esp32 wroom-32d

rocket-hub commented 4 years ago

Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "NodeMCU-32S, 80MHz, 921600"

C:\Users\serap\Documents\Arduino\E131_PixelPusher-develop\Arduino\E131_PixelPusher\E131_PixelPusher.ino: In function 'void initDMA()':

E131_PixelPusher:248:47: error: no matching function for call to 'NeoEsp32RmtMethodBase<NeoEsp32RmtSpeedWs2812x, NeoEsp32RmtChannel6>::NeoEsp32RmtMethodBase(int, uint16_t&, int)'

 dma = new NeoWs2813Method(PIN, ledCount, 3);

                                           ^

In file included from C:\Users\serap\Documents\Arduino\libraries\NeoPixelBus-master\src/NeoPixelBus.h:95:0,

             from C:\Users\serap\Documents\Arduino\E131_PixelPusher-develop\Arduino\E131_PixelPusher\E131_PixelPusher.ino:32:

C:\Users\serap\Documents\Arduino\libraries\NeoPixelBus-master\src/internal/NeoEsp32RmtMethod.h:261:5: note: candidate: NeoEsp32RmtMethodBase<T_SPEED, T_CHANNEL>::NeoEsp32RmtMethodBase(uint8_t, uint16_t, size_t, size_t) [with T_SPEED = NeoEsp32RmtSpeedWs2812x; T_CHANNEL = NeoEsp32RmtChannel6; uint8_t = unsigned char; uint16_t = short unsigned int; size_t = unsigned int]

 NeoEsp32RmtMethodBase(uint8_t pin, uint16_t pixelCount, size_t elementSize, size_t settingsSize)  :

 ^

C:\Users\serap\Documents\Arduino\libraries\NeoPixelBus-master\src/internal/NeoEsp32RmtMethod.h:261:5: note: candidate expects 4 arguments, 3 provided

C:\Users\serap\Documents\Arduino\libraries\NeoPixelBus-master\src/internal/NeoEsp32RmtMethod.h:258:54: note: candidate: constexpr NeoEsp32RmtMethodBase<NeoEsp32RmtSpeedWs2812x, NeoEsp32RmtChannel6>::NeoEsp32RmtMethodBase(const NeoEsp32RmtMethodBase<NeoEsp32RmtSpeedWs2812x, NeoEsp32RmtChannel6>&)

template<typename T_SPEED, typename T_CHANNEL> class NeoEsp32RmtMethodBase

                                                  ^

C:\Users\serap\Documents\Arduino\libraries\NeoPixelBus-master\src/internal/NeoEsp32RmtMethod.h:258:54: note: candidate expects 1 argument, 3 provided

C:\Users\serap\Documents\Arduino\E131_PixelPusher-develop\Arduino\E131_PixelPusher\E131_PixelPusher.ino: In function 'void setup()':

E131_PixelPusher:336:10: error: 'class WiFiClass' has no member named 'mode'

 WiFi.mode(WIFI_STA); // Make sure you're in station mode

      ^

E131_PixelPusher:336:15: error: 'WIFI_STA' was not declared in this scope

 WiFi.mode(WIFI_STA); // Make sure you're in station mode

           ^

E131_PixelPusher:337:10: error: 'class WiFiClass' has no member named 'setHostname'

 WiFi.setHostname(const_cast<char *>(NameChipId));

      ^

C:\Users\serap\Documents\Arduino\E131_PixelPusher-develop\Arduino\E131_PixelPusher\E131_PixelPusher.ino: In function 'void loop()':

E131_PixelPusher:507:21: error: 'NeoWs2813Method {aka class NeoEsp32RmtMethodBase<NeoEsp32RmtSpeedWs2812x, NeoEsp32RmtChannel6>}' has no member named 'getPixels'

     memcpy(dma->getPixels(), pixel, dma->getPixelsSize());

                 ^

E131_PixelPusher:507:46: error: 'NeoWs2813Method {aka class NeoEsp32RmtMethodBase<NeoEsp32RmtSpeedWs2812x, NeoEsp32RmtChannel6>}' has no member named 'getPixelsSize'

     memcpy(dma->getPixels(), pixel, dma->getPixelsSize());

                                          ^

exit status 1 no matching function for call to 'NeoEsp32RmtMethodBase<NeoEsp32RmtSpeedWs2812x, NeoEsp32RmtChannel6>::NeoEsp32RmtMethodBase(int, uint16_t&, int)'