AdmiralCrunch
Well-known member
hi
I'm struggeling with this for more then 4 weeks now and can't get that managed, please help :/
I have those UTC U74HC595AG Shiftregisters of which I have wired 3 of them in a row like described in those numerous tutorials.
(the Qh-Pin of the first IC to the Data-Pin of the second.. the Qh-Pin of the second to the Data-Pin of the third) .. now I need to get shiftPWM working.
When I execute the ShiftPWM_RGB_Example.. something lights up, but I couldn't retrace why what lit up.. so I tried this:
this should light me up the first LED in red.. then in green... then in bue.. right?
but look what it does: https://youtu.be/8IctLHeVx6o
otherwise, when I try the NON_Blocking-example, nothing works :/
has somebody experiance with this? .. i would appreciate any help
I'm struggeling with this for more then 4 weeks now and can't get that managed, please help :/
I have those UTC U74HC595AG Shiftregisters of which I have wired 3 of them in a row like described in those numerous tutorials.
(the Qh-Pin of the first IC to the Data-Pin of the second.. the Qh-Pin of the second to the Data-Pin of the third) .. now I need to get shiftPWM working.
When I execute the ShiftPWM_RGB_Example.. something lights up, but I couldn't retrace why what lit up.. so I tried this:
Code:
const int ShiftPWM_latchPin = 6;
#define SHIFTPWM_NOSPI
const int ShiftPWM_dataPin = 5;
const int ShiftPWM_clockPin = 7;
const bool ShiftPWM_invertOutputs = false;
const bool ShiftPWM_balanceLoad = true;
#include <ShiftPWM.h>
void setup() {
Serial.begin(9600);
ShiftPWM.SetAmountOfRegisters(3);
ShiftPWM.SetPinGrouping(8);
ShiftPWM.Start(75, 255);
}
void loop() {
ShiftPWM.SetAll(0);
delay(500);
ShiftPWM.SetRGB(0,100,0,0);
delay(500);
ShiftPWM.SetRGB(0,0,100,0);
delay(500);
ShiftPWM.SetRGB(0,0,0,100);
delay(500);
}
this should light me up the first LED in red.. then in green... then in bue.. right?
but look what it does: https://youtu.be/8IctLHeVx6o
otherwise, when I try the NON_Blocking-example, nothing works :/
has somebody experiance with this? .. i would appreciate any help