Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem code... #4

Open
rocket-hub opened this issue Feb 28, 2020 · 4 comments
Open

problem code... #4

rocket-hub opened this issue Feb 28, 2020 · 4 comments

Comments

@rocket-hub
Copy link

rocket-hub commented Feb 28, 2020

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
Copy link
Owner

debsahu commented Feb 28, 2020

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

@debsahu
Copy link
Owner

debsahu commented Feb 28, 2020

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
Copy link
Author

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
Copy link
Author

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)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants