Flexible Digitally Controlled RGB LED strips (HCOPTO0028)

LCD, TFT, OLED, LED modules
andrew
Site Admin
Posts: 785
Joined: Sun Aug 05, 2012 4:15 pm

Re: Flexible Digitally Controlled RGB LED strips (HCOPTO002

Post by andrew » Sat Aug 05, 2017 9:58 am

I think i see the problem. Can you try the following:

In the HCWS2812.h header file find the following lines....

Code: Select all

#if defined (ESP8266)
#define DOUT_HIGH GPOS = 1<<4
#define DOUT_LOW GPOC = 1<<4
...and change them to:

Code: Select all

#if defined (ESP8266)
#define DOUT_HIGH GPOS = 1<<2
#define DOUT_LOW GPOC = 1<<2
If you could let me know if this fixes your problem i'll get an update made to the library.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

discovite
Posts: 3
Joined: Thu Jul 20, 2017 1:00 pm

Re: Flexible Digitally Controlled RGB LED strips (HCOPTO002

Post by discovite » Wed Aug 09, 2017 11:57 am

That has done the job. :D

Thanks so much for your help on this, if you could update the library with the fix that would be great.

andrew
Site Admin
Posts: 785
Joined: Sun Aug 05, 2012 4:15 pm

Re: Flexible Digitally Controlled RGB LED strips (HCOPTO002

Post by andrew » Wed Aug 09, 2017 2:31 pm

Thanks for confirming it works. The library was updated to work with the WeMos boards which are also ESP8266 based. However it looks like they may use slightly different core files compared to the ones used by the Huzzah Feather. Hence why it complies ok for one and not the other. I'll get the library updated to work with both as soon as possible.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Ananym
Posts: 2
Joined: Wed Apr 15, 2015 4:11 pm

Re: Flexible Digitally Controlled RGB LED strips (HCOPTO002

Post by Ananym » Fri Dec 22, 2017 10:47 pm

Hi guys - great product, the LEDs are bright and vibrantly coloured. However, having a little trouble - would greatly appreciate some advice.
I'm trying to get the example code in the first post working. Number of LEDs set to 30 in the header, but no other edits.
I've been using the Arduino compatible Nano and Arduino compatible Mega both also from HC.

Half the refreshes work fine, but every other refresh will just set every LED to full blinding white instead of the intended pattern. This holds for both boards, I tried the Mega to see if it was a board-specific timing thing.

Just using a D-cell battery as a power supply regulated to 5V by the Red Wings breadboard module, nothing complicated.
Would love to put these to use, so thanks in advance for any help you can offer!

andrew
Site Admin
Posts: 785
Joined: Sun Aug 05, 2012 4:15 pm

Re: Flexible Digitally Controlled RGB LED strips (HCOPTO002

Post by andrew » Sat Dec 23, 2017 7:41 am

Does the same thing happen if you power the Arduino via USB? Also what version of the Arduino IDE are you using? It should show the version number in the top left hand part of the window.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply