I have the Grove LED Strip Driver plugged into D38 on the Wio LTE Cat M1/NB-IoT Tracker. Power is connected and the LEDs are on, but when I run the demos with the code setup - nothing happens:
</s>#include "RGBdriver.h"
#define CLK 2//pins definitions for the driver
#define DIO 3
RGBdriver Driver(CLK,DIO);<e>
I added logging to the demo and the loop is executing properly. Any ideas on how to get this to work?
Thanks Bill - I gave that a shot and it still doesn’t work. I’ve tried a couple different generic RGB+ LED strips, but the result is the same with both. Here’s the code I’m pushing…
[code]#include <board.h>
// Author:Frankie.Chu
// Date:March 9,2012
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
/***************************************************************************/ #include “RGBdriver.h” #define CLK 38 //pin definitions for the driver #define DIO 39
RGBdriver Driver(CLK,DIO);
void setup()
{
}
void loop()
{
Driver.begin(); // begin
Driver.SetColor(0, 0, 0); //Red. first node data
Driver.end();
delay(5000); Driver.begin(); // begin
Driver.SetColor(255, 0, 0); //Red. first node data
Driver.end();
delay(5000);
Driver.begin(); // begin
Driver.SetColor(0, 255, 0); //Green. first node data
Driver.end();
delay(5000);
Driver.begin(); // begin
Driver.SetColor(0, 0, 255);//Blue. first node data
Driver.end();
delay(5000);
}[/code]
I do not have the RGB leds which matched with LED matrix driver on hands, But i have the ws2812 leds. I connected it to D38 and test it with below code successfully. thanks.