These are chat archives for Makuna/NeoPixelBus

4th
Sep 2016
Aditya Tannu
@AdySan
Sep 04 2016 04:48
I started my Arduino IDE after a few months today. Installed latest release of the ESP8266/Arudino Core, v2.2.1 of this library and trying to compile the examples but I run into this error. Did I miss something?
Compiling sketch...
"/Users/adityatannu/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/adityatannu/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-I/Users/adityatannu/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-I/var/folders/75/wvhmv78s3zz48zf4fssk4__40000gn/T/builded7f238da4e5a574fc006afcfdf86a28.tmp/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10611 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU"  -DESP8266 "-I/Users/adityatannu/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266" "-I/Users/adityatannu/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/variants/nodemcu" "-I/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src" "-I/Users/adityatannu/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SPI" "/var/folders/75/wvhmv78s3zz48zf4fssk4__40000gn/T/builded7f238da4e5a574fc006afcfdf86a28.tmp/sketch/NeoPixelFunLoop.ino.cpp" -o "/var/folders/75/wvhmv78s3zz48zf4fssk4__40000gn/T/builded7f238da4e5a574fc006afcfdf86a28.tmp/sketch/NeoPixelFunLoop.ino.cpp.o"
In file included from /Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/examples/NeoPixelFunLoop/NeoPixelFunLoop.ino:14:0:
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/NeoPixelBus.h: In instantiation of 'NeoPixelBus<T_COLOR_FEATURE, T_METHOD>::NeoPixelBus(uint16_t, uint8_t) [with T_COLOR_FEATURE = NeoGrbFeature; T_METHOD = NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>; uint16_t = short unsigned int; uint8_t = unsigned char]':
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/examples/NeoPixelFunLoop/NeoPixelFunLoop.ino:28:72:   required from here
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/NeoPixelBus.h:91:61: error: no matching function for call to 'NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::NeoEsp8266DmaMethodBase(uint8_t&, uint16_t&, const size_t&)'
         _method(pin, countPixels, T_COLOR_FEATURE::PixelSize)
                                                             ^
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/NeoPixelBus.h:91:61: note: candidates are:
In file included from /Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/NeoPixelBus.h:57:0,
                 from /Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/examples/NeoPixelFunLoop/NeoPixelFunLoop.ino:14:
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/internal/NeoEsp8266DmaMethod.h:94:5: note: NeoEsp8266DmaMethodBase<T_SPEED>::NeoEsp8266DmaMethodBase(uint16_t, size_t) [with T_SPEED = NeoEsp8266DmaSpeed800Kbps; uint16_t = short unsigned int; size_t = unsigned int]
     NeoEsp8266DmaMethodBase(uint16_t pixelCount, size_t elementSize) 
     ^
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/internal/NeoEsp8266DmaMethod.h:94:5: note:   candidate expects 2 arguments, 3 provided
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/internal/NeoEsp8266DmaMethod.h:91:34: note: constexpr NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>::NeoEsp8266DmaMethodBase(const NeoEsp8266DmaMethodBase<NeoEsp8266DmaSpeed800Kbps>&)
 template<typename T_SPEED> class NeoEsp8266DmaMethodBase
                                  ^
/Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna/src/internal/NeoEsp8266DmaMethod.h:91:34: note:   candidate expects 1 argument, 3 provided
Using library NeoPixelBus_by_Makuna at version 2.2.1 in folder: /Users/adityatannu/Documents/Arduino/libraries/NeoPixelBus_by_Makuna 
Using library SPI at version 1.0 in folder: /Users/adityatannu/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/SPI 
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
OK, switching to v2.2.0 works fine
Michael Miller
@Makuna
Sep 04 2016 06:21
@AdySan Yeah, v2.2.1 for some requires you omit the pin since its ignored. I was convinced this is problematic if you compile the same sketch for several platforms; so expect that to be fixed in v2.2.2 (latter this weekend).
v2.2.0 didn't have this requirement and if you are not using DotStars (ada102) then v2.2.0 is fine.
Ash
@ashthespy
Sep 04 2016 16:39
Heya! I am making a generic ESP-12 based board, and wanted to incorporate a RGB notification led based on a single WS2812/11
I was looking at the "best practices" and couldn't find any information, but could I hook it up to any pin on the ESP-12?
Michael Miller
@Makuna
Sep 04 2016 16:50
@ashthespy Due to some low level WiFi interrupts, on the ESP8266 its best to use the default DMA or UART method of sending data and both of these have hardware specific pins they use (see wiki). BUT, since you are only driving one pixel, so you could use the bit bang method which opens you up to almost any pin (see NeoEsp8266BitBang800KpbsMethod)
NeoPixelBus<NeoGrbFeature, NeoEsp8266BitBang800KbpsMethod> strip(32, 4); // on pin 4
Ash
@ashthespy
Sep 04 2016 16:55
@Makuna Thanks for the quick response! I shall wire this up as a single, and for full fledged strips, use the hardware specific pins!