You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@BlynkGO and @lybgo Do you know what the differences are between the standard ESP32 and the ESP32-C3? Would you be willing to help us make the necessary changes to FastLED?
@lybgo I don't have an ESP32-C3 module -- can you share the error output with me? From the datasheet, I don't see any reason why our code wouldn't compile. I would caution you, however, that even the dual-core ESP32 has trouble supporting Wifi and FastLED at the same time, especially when a lot of data is being sent on the network. Even if we get it compiled and working, you might not get the performance you want.
In file included from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
# pragma message "FastLED version 3.004.000"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:3,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms.h:36,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static void _ESPPIN<PIN, MASK>::hi()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:15:17: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1_w1ts'; did you mean 'out_w1ts'?
else GPIO.out1_w1ts.val = MASK;
^~~~~~~~~
out_w1ts
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static void _ESPPIN<PIN, MASK>::lo()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:20:17: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1_w1tc'; did you mean 'out_w1tc'?
else GPIO.out1_w1tc.val = MASK;
^~~~~~~~~
out_w1tc
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static void _ESPPIN<PIN, MASK>::set(_ESPPIN<PIN, MASK>::port_t)':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:25:17: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1'; did you mean 'out'?
else GPIO.out1.val = val;
^~~~
out
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static void _ESPPIN<PIN, MASK>::toggle()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:31:31: error: no match for 'operator^=' (operand types are 'volatile<unnamed struct>::<unnamed union>' and 'long unsigned int')
if(PIN < 32) { GPIO.out ^= MASK; }
~~~~~~~~~^~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/port/riscv/include/freertos/portmacro.h:44,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/portable.h:52,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/FreeRTOS.h:64,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32\cores\esp32/Arduino.h:33,
from C:\Users\lybgo\AppData\Local\Temp\arduino_build_162118\sketch\FastLedTest.ino.cpp:1:
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:123:25: note: candidate: 'touch_pad_intr_mask_t& operator^=(touch_pad_intr_mask_t&, touch_pad_intr_mask_t)'
FORCE_INLINE_ATTR TYPE& operator^=(TYPE& a, TYPE b) { a = a ^ b; return a; } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:123:25: note: no known conversion for argument 1 from 'volatile<unnamed struct>::<unnamed union>' to 'touch_pad_intr_mask_t&'
FORCE_INLINE_ATTR TYPE& operator^=(TYPE& a, TYPE b) { a = a ^ b; return a; } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:3,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms.h:36,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:32:19: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1'; did you mean 'out'?
else { GPIO.out1.val ^=MASK; }
^~~~
out
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static _ESPPIN<PIN, MASK>::port_t _ESPPIN<PIN, MASK>::hival()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:40:37: error: no match for 'operator|' (operand types are 'volatile<unnamed struct>::<unnamed union>' and 'long unsigned int')
if (PIN < 32) return GPIO.out | MASK;
~~~~~~~~~^~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/port/riscv/include/freertos/portmacro.h:44,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/portable.h:52,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/FreeRTOS.h:64,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32\cores\esp32/Arduino.h:33,
from C:\Users\lybgo\AppData\Local\Temp\arduino_build_162118\sketch\FastLedTest.ino.cpp:1:
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:116:34: note: candidate: 'constexpr touch_pad_intr_mask_t operator|(touch_pad_intr_mask_t, touch_pad_intr_mask_t)'
FORCE_INLINE_ATTR constexpr TYPE operator| (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a | (INT_TYPE)b); } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:116:34: note: no known conversion for argument 1 from 'volatile<unnamed struct>::<unnamed union>' to 'touch_pad_intr_mask_t'
FORCE_INLINE_ATTR constexpr TYPE operator| (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a | (INT_TYPE)b); } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/controller.h:9,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:47,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:832:13: note: candidate: 'CRGB operator|(const CRGB&, const CRGB&)'
inline CRGB operator|( const CRGB& p1, const CRGB& p2)
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:832:13: note: no known conversion for argument 1 from 'volatile<unnamed struct>::<unnamed union>' to 'const CRGB&'
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:3,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms.h:36,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:41:24: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1'; did you mean 'out'?
else return GPIO.out1.val | MASK;
^~~~
out
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static _ESPPIN<PIN, MASK>::port_t _ESPPIN<PIN, MASK>::loval()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:45:37: error: no match for 'operator&' (operand types are 'volatile<unnamed struct>::<unnamed union>' and 'long unsigned int')
if (PIN < 32) return GPIO.out & ~MASK;
~~~~~~~~~^~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/port/riscv/include/freertos/portmacro.h:44,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/portable.h:52,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/FreeRTOS.h:64,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32\cores\esp32/Arduino.h:33,
from C:\Users\lybgo\AppData\Local\Temp\arduino_build_162118\sketch\FastLedTest.ino.cpp:1:
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:117:34: note: candidate: 'constexpr touch_pad_intr_mask_t operator&(touch_pad_intr_mask_t, touch_pad_intr_mask_t)'
FORCE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b); } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:117:34: note: no known conversion for argument 1 from 'volatile<unnamed struct>::<unnamed union>' to 'touch_pad_intr_mask_t'
FORCE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b); } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/controller.h:9,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:47,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:824:13: note: candidate: 'CRGB operator&(const CRGB&, const CRGB&)'
inline CRGB operator&( const CRGB& p1, const CRGB& p2)
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:824:13: note: no known conversion for argument 1 from 'volatile<unnamed struct>::<unnamed union>' to 'const CRGB&'
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:3,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms.h:36,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:46:24: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1'; did you mean 'out'?
else return GPIO.out1.val & ~MASK;
^~~~
out
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static volatile uint32_t* _ESPPIN<PIN, MASK>::port()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:50:34: error: cannot convert 'volatile<unnamed struct>::<unnamed union>*' to '_ESPPIN<PIN, MASK>::port_ptr_t' {aka 'volatile long unsigned int*'} in return
if (PIN < 32) return &GPIO.out;
^~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:51:25: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1'; did you mean 'out'?
else return &GPIO.out1.val;
^~~~
out
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static volatile uint32_t* _ESPPIN<PIN, MASK>::sport()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:55:34: error: cannot convert 'volatile<unnamed struct>::<unnamed union>*' to '_ESPPIN<PIN, MASK>::port_ptr_t' {aka 'volatile long unsigned int*'} in return
if (PIN < 32) return &GPIO.out_w1ts;
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:56:25: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1_w1ts'; did you mean 'out_w1ts'?
else return &GPIO.out1_w1ts.val;
^~~~~~~~~
out_w1ts
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static volatile uint32_t* _ESPPIN<PIN, MASK>::cport()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:60:34: error: cannot convert 'volatile<unnamed struct>::<unnamed union>*' to '_ESPPIN<PIN, MASK>::port_ptr_t' {aka 'volatile long unsigned int*'} in return
if (PIN < 32) return &GPIO.out_w1tc;
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:61:25: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1_w1tc'; did you mean 'out_w1tc'?
else return &GPIO.out1_w1tc.val;
^~~~~~~~~
out_w1tc
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h: In static member function 'static bool _ESPPIN<PIN, MASK>::isset()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:67:37: error: no match for 'operator&' (operand types are 'volatile<unnamed struct>::<unnamed union>' and 'long unsigned int')
if (PIN < 32) return GPIO.out & MASK;
~~~~~~~~~^~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/port/riscv/include/freertos/portmacro.h:44,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/portable.h:52,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/freertos/include/freertos/FreeRTOS.h:64,
from C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32\cores\esp32/Arduino.h:33,
from C:\Users\lybgo\AppData\Local\Temp\arduino_build_162118\sketch\FastLedTest.ino.cpp:1:
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:117:34: note: candidate: 'constexpr touch_pad_intr_mask_t operator&(touch_pad_intr_mask_t, touch_pad_intr_mask_t)'
FORCE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b); } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:117:34: note: no known conversion for argument 1 from 'volatile<unnamed struct>::<unnamed union>' to 'touch_pad_intr_mask_t'
FORCE_INLINE_ATTR constexpr TYPE operator& (TYPE a, TYPE b) { return (TYPE)((INT_TYPE)a & (INT_TYPE)b); } \
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:127:29: note: in expansion of macro 'FLAG_ATTR_IMPL'
#define FLAG_ATTR_U32(TYPE) FLAG_ATTR_IMPL(TYPE, uint32_t)
^~~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/esp_common/include/esp_attr.h:128:19: note: in expansion of macro 'FLAG_ATTR_U32'
#define FLAG_ATTR FLAG_ATTR_U32
^~~~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/hal/include/hal/touch_sensor_types.h:165:1: note: in expansion of macro 'FLAG_ATTR'
FLAG_ATTR(touch_pad_intr_mask_t)
^~~~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/controller.h:9,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:47,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:824:13: note: candidate: 'CRGB operator&(const CRGB&, const CRGB&)'
inline CRGB operator&( const CRGB& p1, const CRGB& p2)
^~~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:824:13: note: no known conversion for argument 1 from 'volatile<unnamed struct>::<unnamed union>' to 'const CRGB&'
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:3,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms.h:36,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/fastpin_esp32.h:68:24: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1'; did you mean 'out'?
else return GPIO.out1.val & MASK;
^~~~
out
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:65,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/fastspi.h: At global scope:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/fastspi.h:145: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\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:48,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:9:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/fastpin.h: In instantiation of 'class FastPin<8>':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:320:23: required from 'class ClocklessController<8, 40, 100, 60, (EOrder)80, 0, false, 5>'
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/chipsets.h:578:7: required from 'class WS2812Controller800Khz<8, (EOrder)80>'
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:103:52: required from 'class WS2812<8, (EOrder)80>'
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:302:39: required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2812; unsigned char DATA_PIN = 8; EOrder RGB_ORDER = (EOrder)80]'
e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:19:52: required from here
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/fastpin.h:210:24: error: static assertion failed: Invalid pin specified
static_assert(validpin(), "Invalid pin specified");
~~~~~~~~^~
"FastLED.h" 对应多个库
已使用: C:\Users\lybgo\Documents\Arduino\libraries\FastLED
未使用:C:\Users\lybgo\Documents\Arduino\libraries\FastLED-3.3.3
exit status 1
IntelliSense configuration updated. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I"
[Error] Uploading sketch 'FastLedTest.ino': Exit with code=1
fastpin_esp32.h:15:17: error: 'gpio_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'out1_w1ts'; did you mean 'out_w1ts'?
else GPIO.out1_w1ts.val = MASK;
Similar to the above problems, I solved the problem by modifying the "fastpin_esp32.h" document. The contents of the modified file are as follows:
In file included from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:10:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
# pragma message "FastLED version 3.004.000"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:65,
from e:\ArduinoDevelopNew\Esp32\Study\FastLedTest\FastLedTest.ino:10:
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/fastspi.h:145: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\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp: In member function 'void ESP32RMTController::startOnChannel(int)':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:243:48: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
^
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32C3/clockless_rmt_esp32.h:123,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32C3/fastled_esp32.h:12,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms.h:39,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:7:
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/driver/include/driver/rmt.h:911:11: note: declared here
esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
^~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:243:48: warning: 'esp_err_t rmt_set_pin(rmt_channel_t, rmt_mode_t, gpio_num_t)' is deprecated: use rmt_set_gpio instead [-Wdeprecated-declarations]
rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
^
In file included from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32C3/clockless_rmt_esp32.h:123,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms/esp/32C3/fastled_esp32.h:12,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/platforms.h:39,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src/FastLED.h:52,
from C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:7:
C:\Users\lybgo\Documents\Arduino\hardware\espressif\esp32/tools/sdk/esp32c3/include/driver/include/driver/rmt.h:911:11: note: declared here
esp_err_t rmt_set_pin(rmt_channel_t channel, rmt_mode_t mode, gpio_num_t gpio_num)
^~~~~~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp: In member function 'void ESP32RMTController::tx_start()':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:278:9: error: 'rmt_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'conf_ch'
RMT.conf_ch[mRMT_channel].conf1.mem_rd_rst = 1;
^~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:279:9: error: 'rmt_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'conf_ch'
RMT.conf_ch[mRMT_channel].conf1.mem_rd_rst = 0;
^~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:282:9: error: 'rmt_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'conf_ch'
RMT.conf_ch[mRMT_channel].conf1.tx_start = 1;
^~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp: In static member function 'static void ESP32RMTController::doneOnChannel(rmt_channel_t, void*)':
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:304:9: error: 'rmt_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'conf_ch'
RMT.conf_ch[channel].conf1.mem_rd_rst = 1;
^~~~~~~
C:\Users\lybgo\Documents\Arduino\libraries\FastLED\src\platforms\esp\32\clockless_rmt_esp32.cpp:305:9: error: 'rmt_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'conf_ch'
RMT.conf_ch[channel].conf1.mem_rd_rst = 0;
^~~~~~~
exit status 1
IntelliSense configuration already up to date. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I"
[Error] Uploading sketch 'FastLedTest.ino': Exit with code=1
clockless_rmt_esp32.cpp:278:9: error: 'rmt_dev_t' {aka 'volatile struct<unnamed>'} has no member named 'conf_ch'
RMT.conf_ch[mRMT_channel].conf1.mem_rd_rst = 1;
Similar to the above problems, I solved the problem by modifying the "clockless_rmt_esp32.cpp" document. The contents of the modified file are as follows:
void IRAM_ATTR ESP32RMTController::tx_start()
{
// rmt_tx_start(mRMT_channel, true);
// Inline the code for rmt_tx_start, so it can be placed in IRAM
RMT.tx_conf[mRMT_channel].conf1.mem_rd_rst = 1;
RMT.tx_conf[mRMT_channel].conf1.mem_rd_rst = 0;
RMT.int_ena.val &= ~(1 << (mRMT_channel * 3));
RMT.int_ena.val |= (1 << (mRMT_channel * 3));
RMT.tx_conf[mRMT_channel].conf1.tx_start = 1;
mLastFill = __clock_cycles();
}
esp32c3 api "Arduino\hardware\espressif\esp32\tools\sdk\esp32c3\include\soc\esp32c3\include\soc\rmt_struct.h"
Related content:
But the compiler cannot find the "Arduino\hardware\espressif\esp32\tools\sdk\esp32c3\include\soc\esp32c3\include\soc\rmt_struct.h" file and reports an error
:
\Arduino\hardware\espressif\esp32\cores\esp32\esp32-hal-rmt.c:316:29: error: 'volatile union <anonymous>' has no member named 'mem_rst'
RMT.tx_conf[channel].mem_rst = 1;
I've put up a pull request with support for C3 #1320
Your code fixed everything for me except this which I get when compiling the demos with FastLED. Safe to ignore?
In file included from C:\Users\palmi\Documents\Arduino\libraries\FastLED\examples\FirstLight\FirstLight.ino:6:
C:\Users\palmi\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
# pragma message "FastLED version 3.004.000"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\palmi\Documents\Arduino\libraries\FastLED\src/FastLED.h:65,
from C:\Users\palmi\Documents\Arduino\libraries\FastLED\examples\FirstLight\FirstLight.ino:6:
C:\Users\palmi\Documents\Arduino\libraries\FastLED\src/fastspi.h:145: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"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Activity
lybgo commentedon Jul 17, 2021
Request support for ESP32-C3 too
samguyer commentedon Jul 26, 2021
@BlynkGO and @lybgo Do you know what the differences are between the standard ESP32 and the ESP32-C3? Would you be willing to help us make the necessary changes to FastLED?
lybgo commentedon Jul 28, 2021
@samguyer Esp32c3 is cheaper than esp32. It supports WiFi + ble5.0 (esp32 ble4.2) and risc-v MCU (esp32 xtensa)
samguyer commentedon Jul 29, 2021
@lybgo What happens if you just run the regular ESP32 code for FastLED on an ESP32-C3? Does it work? If not, why?
lybgo commentedon Jul 30, 2021
@samguyer The code failed to compile
samguyer commentedon Jul 30, 2021
@lybgo I don't have an ESP32-C3 module -- can you share the error output with me? From the datasheet, I don't see any reason why our code wouldn't compile. I would caution you, however, that even the dual-core ESP32 has trouble supporting Wifi and FastLED at the same time, especially when a lot of data is being sent on the network. Even if we get it compiled and working, you might not get the performance you want.
lybgo commentedon Aug 2, 2021
@samguyer
error output:
lybgo commentedon Aug 2, 2021
@samguyer
Similar to the above problems, I solved the problem by modifying the "fastpin_esp32.h" document. The contents of the modified file are as follows:
Then came the new problem:
lybgo commentedon Aug 2, 2021
@samguyer
Similar to the above problems, I solved the problem by modifying the "clockless_rmt_esp32.cpp" document. The contents of the modified file are as follows:
esp32c3 api "Arduino\hardware\espressif\esp32\tools\sdk\esp32c3\include\soc\esp32c3\include\soc\rmt_struct.h"
Related content:
But the compiler cannot find the "Arduino\hardware\espressif\esp32\tools\sdk\esp32c3\include\soc\esp32c3\include\soc\rmt_struct.h" file and reports an error
:
lybgo commentedon Aug 2, 2021
@samguyer
Above problems, I solved the problem by modifying the "clockless_rmt_esp32.cpp" document. The contents of the modified file are as follows:
projects-land commentedon Nov 17, 2021
I've put up a pull request with support for C3 #1320
societyofrobots commentedon Dec 30, 2021
Your code fixed everything for me except this which I get when compiling the demos with FastLED. Safe to ignore?