CircularLEDtest doesn't work on Seeeduino Lotus Cortex-M0+

Hi,

I tried a Circular LED example sketch, CircularLEDtest, with Seeeduino Lotus Cortex-M0+

and it failed to compile. Arduino IDE said
[code]C:\Program Files (x86)\Arduino\libraries\CircularLED\CircularLED.cpp: In constructor ‘CircularLED::CircularLED(int, int)’:

C:\Program Files (x86)\Arduino\libraries\CircularLED\CircularLED.cpp:37:12: error: cannot convert ‘volatile uint32_t* {aka volatile long unsigned int*}’ to ‘volatile uint8_t* {aka volatile unsigned char*}’ in assignment

PORT_Data = portOutputRegister(digitalPinToPort(_data));

        ^

C:\Program Files (x86)\Arduino\libraries\CircularLED\CircularLED.cpp:38:11: error: cannot convert ‘volatile uint32_t* {aka volatile long unsigned int*}’ to ‘volatile uint8_t* {aka volatile unsigned char*}’ in assignment

PORT_Clk = portOutputRegister(digitalPinToPort(_clk));
[/code]

what’s wrong?

Hi there~



The library uses the PORT operation and which does not work for Seeeduino Lotus Cortex-M0+. We feedback to software team to modify the code and make it compatible with Seeeduino Lotus Cortex-M0+. We will update it here. thanks.

Hi there~



We still see some issue with the new library and working on it now. We will keep you posted. thanks.

</s>https://github.com/Seeed-Studio/Grove_LED_Bar<e>

Hi there~



The issue is solved. You can run the basic example. The code is used for the grove led bar as well. So you have to modify the code as below. thanks.



<LINK_TEXT text=“https://github.com/Seeed-Studio/Grove_L … ol.ino#L27”>https://github.com/Seeed-Studio/Grove_LED_Bar/blob/master/examples/BasicControl/BasicControl.ino#L27</LINK_TEXT>


[code]#include <Grove_LED_Bar.h>

//BE SURE USE CORRESPONDING DEVICE
Grove_LED_Bar bar(6, 7, 0, LED_CIRCULAR_24);
//FOR LED_BAR_10
//Grove_LED_Bar bar(7, 6, 0, LED_BAR_10); // Clock pin, Data pin, Orientation[/code]