用STM32做WS2812灯带测试的时候出现个错,哪位大佬帮忙看看
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() ':
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() '
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; }
把你的构思和程序尽量上传上来,才可以大致梳理一下你的程序 我可以帮你看看 53693488@qq.com
页:
[1]