|
FastLED.addLeds<WS2812,PC13,GRB>(leds,NUM_LEDS);
调用这句的时候报的错,用UNO一切正常,换成STM32就出错了
用的是FastLED3.3.2
In file included from C:\Users\Mars.CN\Documents\Arduino\sketch_dec19b\sketch_dec19b.ino:1:0:
C:\Users\Mars.CN\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 C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/fastled_arm_stm32.h:5:0,
from C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms.h:28,
from C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/FastLED.h:52,
from C:\Users\Mars.CN\Documents\Arduino\sketch_dec19b\sketch_dec19b.ino:1:
C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/fastpin_arm_stm32.h: In instantiation of 'static volatile uint32_t* _ARMPIN<PIN, _BIT, _MASK, _GPIO>::port() [with unsigned char PIN = 32u; unsigned char _BIT = 11u; long unsigned int _MASK = 2048ul; _GPIO = __gen_struct_GPIOA; _ARMPIN<PIN, _BIT, _MASK, _GPIO>::port_ptr_t = volatile long unsigned int*; uint32_t = long unsigned int]':
C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/clockless_arm_stm32.h:22:37: required from 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::init() [with int DATA_PIN = 32; int T1 = 18; int T2 = 45; int T3 = 27; EOrder RGB_ORDER = (EOrder)66u; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 50]'
C:\Users\Mars.CN\Documents\Arduino\sketch_dec19b\sketch_dec19b.ino:23:1: required from here
C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/fastpin_arm_stm32.h:52:86: error: incomplete type '__gen_struct_GPIOA' used in nested name specifier
inline static port_ptr_t port() __attribute__ ((always_inline)) { return &_GPIO::r()->ODR; }
|
|